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.