Cannot get the entire list of subnodes under a node

Author Message

Sven Ryen

Wednesday 16 April 2003 5:27:10 am

Hi!

I've run into a problem with Ez Publish:

I have set up classes and sections (just like in the demo), and created the neccesary documents (also like in the demo), this works great, except for one case, where I simply cannot get the list of content stored under a node.

I have tried
fetch("content","list",hash("parent_node_id",$node.node_id))
fetch("content","list",hash("parent_node_id",$DesignKeys:used.node,"class_filter_type","include","class_filter_array",array(1,11)))

No matter what I do, only items of class 1 show up. The node contains two items of class 1, two items of class 11.

Any ideas?

Jan Borsodi

Wednesday 16 April 2003 5:45:50 am

Did you install the demo data and then started your work from there?
If so there will be some restrictions for the anonymous user in place, it will only anonymous users to view certain classes.
You should check out role/list to see what policies are set on the different roles.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Sven Ryen

Wednesday 16 April 2003 6:38:33 am

Thanks, Jan!

I knew there was a catch. I did not install demo-data, but oddly enough, the "Anonymous" user had a restriction to only view content of types 1 and 7...

I have never touched those settings, so I don't know how type 7 got in the, but not any of the others... I'm suspecting some other admin at the site has been playing with the setting, though...

But thanks - you just made my day! :)

Jan Borsodi

Wednesday 16 April 2003 7:01:50 am

The restrictions were from the demo data, they were required for the demo templates to work properly.
It's generally a good idea to reinstall with kernel clean when you want to develop for the site.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Sven Ryen

Wednesday 16 April 2003 7:49:54 am

Believe it or not - this was a clean install. We did not install demo data.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 21:45:57
Script start
Timing: Jan 30 2025 21:45:57
Module start 'layout'
Timing: Jan 30 2025 21:45:57
Module start 'content'
Timing: Jan 30 2025 21:45:57
Module end 'content'
Timing: Jan 30 2025 21:45:57
Script end

Main resources:

Total runtime0.0202 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0037 588.3750151.2422
Module start 'layout' 0.00370.0026 739.6172220.7344
Module start 'content' 0.00630.0124 960.35161,001.8203
Module end 'content' 0.01870.0015 1,962.171933.9922
Script end 0.0202  1,996.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002210.8946140.0002
Check MTime0.00094.4846140.0001
Mysql Total
Database connection0.00052.610010.0005
Mysqli_queries0.00157.386230.0005
Looping result0.00000.039010.0000
Template Total0.00104.910.0010
Template load0.00083.861310.0008
Template processing0.00021.014010.0002
Override
Cache load0.00052.411710.0005
General
dbfile0.00136.444280.0002
String conversion0.00000.024840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs