Use section of parent for display

Author Message

Nathaniel Fitzgerald-Hood

Wednesday 04 February 2004 9:54:01 pm

I have a site divided into 3 sections. The sections share tpl overrides for content classes but use different pagelayouts. I have created my own user class (Staff Member) which is placed automatically in a custom user group under the Users section (ID: 14). This information is used for login and information display. To display staff lists staff members are placed in a hierarchy of directories across the 3 sections (based on their geographic location, position, etc).

The three sections which I use to display everything are 11, 9 and 13. Since a user can appear in any or all of them I want to display the correct pagelayout override for the section based on that of the parent, not the staff member. So, if a staffmember is in a folder within section 13 that pagelayout override is used.

Is there someway to accomplish this (appending ?SectionID=9 to the URL doesn't do it)? At the moment it uses the section for the staff member (14) no matter what.

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 19 2025 00:34:56
Script start
Timing: Jan 19 2025 00:34:56
Module start 'layout'
Timing: Jan 19 2025 00:34:56
Module start 'content'
Timing: Jan 19 2025 00:34:56
Module end 'content'
Timing: Jan 19 2025 00:34:56
Script end

Main resources:

Total runtime0.5187 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 587.9375152.6250
Module start 'layout' 0.00520.0034 740.562539.4453
Module start 'content' 0.00860.5087 780.0078399.4531
Module end 'content' 0.51730.0014 1,179.46098.1563
Script end 0.5187  1,187.6172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.6060160.0002
Check MTime0.00120.2388160.0001
Mysql Total
Database connection0.00090.165810.0009
Mysqli_queries0.484593.4038460.0105
Looping result0.00060.1161440.0000
Template Total0.491194.720.2455
Template load0.00200.388520.0010
Template processing0.489094.278420.2445
Template load and register function0.00010.022810.0001
states
state_id_array0.00080.145010.0008
state_identifier_array0.00060.120720.0003
Override
Cache load0.00160.306660.0003
Sytem overhead
Fetch class attribute can translate value0.00070.143210.0007
Fetch class attribute name0.00050.104510.0005
XML
Image XML parsing0.00010.018510.0001
class_abstraction
Instantiating content class attribute0.00000.001010.0000
General
dbfile0.00070.1380100.0001
String conversion0.00000.001740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0002 secs