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.