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.

eZ debug

Timing: Jan 19 2025 01:08:25
Script start
Timing: Jan 19 2025 01:08:25
Module start 'layout'
Timing: Jan 19 2025 01:08:25
Module start 'content'
Timing: Jan 19 2025 01:08:25
Module end 'content'
Timing: Jan 19 2025 01:08:25
Script end

Main resources:

Total runtime0.6659 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 589.1563152.6250
Module start 'layout' 0.00650.0037 741.781339.4453
Module start 'content' 0.01030.6541 781.2266632.3828
Module end 'content' 0.66430.0016 1,413.609416.1641
Script end 0.6659  1,429.7734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5158160.0002
Check MTime0.00130.1990160.0001
Mysql Total
Database connection0.00080.124810.0008
Mysqli_queries0.610091.6044670.0091
Looping result0.00060.0953650.0000
Template Total0.634795.320.3173
Template load0.00200.297220.0010
Template processing0.632795.005520.3163
Template load and register function0.00010.018810.0001
states
state_id_array0.00100.153610.0010
state_identifier_array0.00060.096420.0003
Override
Cache load0.00170.2510400.0000
Sytem overhead
Fetch class attribute can translate value0.00050.071540.0001
Fetch class attribute name0.00160.237770.0002
XML
Image XML parsing0.00110.157940.0003
class_abstraction
Instantiating content class attribute0.00000.001970.0000
General
dbfile0.00090.1361220.0000
String conversion0.00000.001640.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs