Use parent object's section for override template selection

Author Message

Nathaniel Fitzgerald-Hood

Sunday 08 February 2004 11:54:54 pm

I have some custom user classes which reside in section 14. When I pace them in various user lists throughout the site (which are section 9, 11 and 13) I want the user node to be displayed with the pagelayout override template of its parent, not its own section ID.

Is there someway to do this? The links to the user objects/nodes are absolute paths through the folder heirarchy.

Help on this would be greatly appreciated.

- Nathaniel

Tore Skobba

Friday 13 February 2004 1:53:04 am

Hi

This is a lone shot, but I think I had a somewhat similar problem. I.e. I wanted my user to be listed in various lists on my site in the content section.

1: Add a, or several locations for each user group in the content part
2: These location nodes where then in the same section as the rest of the site. I then made node overrides for the locations nodes which simply fetched all children of the main root node( users in the user section). This meant that my users where listed in the content section using that layout and not the user section. However, full view on a single user within the content section was not possible, therefore search in user were turned of.

I do not know if this is of any help.

Tore

Nathaniel Fitzgerald-Hood

Tuesday 17 February 2004 9:50:16 pm

Hi,

Yes that's exactly where I get to - I have lists which display correctly but when I go to full item view things go to pieces with the wrong pagelayout. I really haven't found a satisfactory solution to this other than to manually assign users to another section (which really isn't good as I have to explain sections to some users and give them too much access).

Thanks nonetheless.

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

Main resources:

Total runtime0.7759 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.1719152.6563
Module start 'layout' 0.00480.0041 740.828139.5078
Module start 'content' 0.00880.7656 780.3359468.0938
Module end 'content' 0.77440.0015 1,248.42978.0938
Script end 0.7758  1,256.5234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4060160.0002
Check MTime0.00130.1630160.0001
Mysql Total
Database connection0.00070.084410.0007
Mysqli_queries0.729494.0033570.0128
Looping result0.00060.0755550.0000
Template Total0.742895.720.3714
Template load0.00200.264020.0010
Template processing0.740795.467720.3704
Template load and register function0.00020.028710.0002
states
state_id_array0.00080.099610.0008
state_identifier_array0.00160.205620.0008
Override
Cache load0.00170.2149180.0001
Sytem overhead
Fetch class attribute can translate value0.00060.074220.0003
Fetch class attribute name0.00100.131530.0003
XML
Image XML parsing0.00020.026320.0001
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00070.0922100.0001
String conversion0.00000.001040.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs