Sections and pagelayouts

Author Message

Jason Wehmhoener

Monday 29 September 2003 6:57:10 pm

A few questions:

1. how are new sections created?
2. how are content objects assigned to sections?
3. can a content object live in a different section from its parent node?
4. can a content object be moved to another section?
5. is there another way to use an alternate pagelayout for a specific content object and its children, something besides assigning pagelayouts to sections which contain content objects?
6. is all of this explained in some documentation somewhere?
7. why is the word "section" used in two completely unrelated ways in ez publish (as a template operator, and to denote parts of the site using different pagelayouts)? Any plans to clear this confusion up?

eZ Publish is amazing! I can't WAIT for better documentation!

Vivienne van Velzen

Monday 29 September 2003 11:05:03 pm

OK, I'll give this a try ;). I might be taking your questions too literally, but it's still early.

1. Go to the admin interface. Under Set up -> Sections you have the option of adding a new section. If you want a differing pagelayout, create a pagelayout_section_XX.tpl in /design/{sitedesign}/override/templates/.

2. In the overview of sections under Set up -> Sections there's a paperclip icon behind every sectionname. Click on this, surf to the object you want to assign the section to and select this object.

3. Yes.

4. Yes, just assign a different section to the object. Seeing as an object can have only one section assigned to it, you'll have moved the object to another section.

5. Hmmm, only if the content object and it's children have the same class, I think. Then you can use the full_class_XX.tpl overwrite templates in /design/{sitedesign}/override/templates/node/view/.

6. Well, you could try this link:
http://www.ez.no/developer/ez_publish_3/documentation/customization/custom_design

7. Not the right person to ask this to ;)

Hope this helps,

Vivienne

Jason Wehmhoener

Tuesday 30 September 2003 11:27:41 am

Very helpful, thank you!

Regarding the use of alternate layouts for specific objects, I was aware that it's possible to create custom templates for specific classes, but it would also be nice to be able to assign alternate templates for specific instances of content objects (as opposed to applying a new template for the entire class). Also, I'm speaking here about using a different pagelayout, not just a different template for the class content.

Why would you want to do this? You might want to have a "newest entries" box only on the home page, but not on other internal pages, for example.

I guess that's what they call a feature request? ;-)

Bruce Morrison

Tuesday 30 September 2003 4:52:35 pm

Hi Jason

It it definitely possible to do what you want with the existing system.

Have a look at http://ez.no/content/view/full/29384 for information on overriding templates

Cheers
Bruce
designIT

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

James Packham

Friday 03 October 2003 3:48:29 am

Your class might be a user, so different users could view the site differently... Would this work?

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