Problem with adding locations from different sections

Author Message

Pratibha Gannavarapu

Thursday 01 June 2006 12:27:32 am

Hi all

I know I did a bit hacking here with the DB :(

Anyway.. What I did was basically creating a new section called 'news' and now I had an navigation part set up for it and set a tab for the backend interface in the same way as 'content', 'media' etc. Now I have assigned a subtree to this section. Now I wanted this subtree to be independent of the content structure tree because whenever I am clicking on the news tab its going on to the node but in the content structure tree. So what I did was basically tampering with the DB a bit and changing the path in the ezObjectTree table in such a way that the parent of the node is no longer '2' which is the ezContent root but I made it '1'.

This all works fine. But now I created a folder under the news section and now added a new location to the content structure tree location. The foder appars fine under its new location on the backend but it does not appear on the front end. On the backend when I go onto the node where the folder is newly added I can see the folder under it but for the front end the exactly same fetch function returns all other kids except for this folder.

{let children=fetch(content,list,hash(parent_node_id,$module_result.node_id))
children_count=$node.children_count}

Thats my code I am using for the frontend. Even the child count is also giving me 1 less that the correct value which means that this folder is not being considered as its child. Any help on this? Ohhh and I am using 3.8 version

The code that is fetching the folder on the backend is:
children=fetch( content, list, hash( parent_node_id, $node.node_id,
sort_by, $node.sort_array,
limit, $number_of_items,
offset, $view_parameters.offset ) ) }

This code is in default children.tpl file.

Cheers
Pratibha

Kristof Coomans

Thursday 01 June 2006 3:12:23 am

Are you sure the user on the frontend has the permission to read folders in the news section?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Pratibha Gannavarapu

Thursday 01 June 2006 4:33:10 pm

Yes the permissions are all set and moreover I am logged in as admin!
Thanks
Pratibha

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