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.

eZ debug

Timing: Jan 31 2025 00:26:33
Script start
Timing: Jan 31 2025 00:26:33
Module start 'layout'
Timing: Jan 31 2025 00:26:33
Module start 'content'
Timing: Jan 31 2025 00:26:33
Module end 'content'
Timing: Jan 31 2025 00:26:33
Script end

Main resources:

Total runtime0.0228 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.0048 588.3594151.2266
Module start 'layout' 0.00480.0032 739.5859220.7188
Module start 'content' 0.00800.0131 960.3047997.8359
Module end 'content' 0.02110.0016 1,958.140633.9922
Script end 0.0227  1,992.1328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002511.0612140.0002
Check MTime0.00114.8050140.0001
Mysql Total
Database connection0.00062.718210.0006
Mysqli_queries0.00219.182830.0007
Looping result0.00000.035610.0000
Template Total0.00114.810.0011
Template load0.00093.846910.0009
Template processing0.00020.900510.0002
Override
Cache load0.00062.550710.0006
General
dbfile0.00114.821780.0001
String conversion0.00000.035640.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