Forums / Setup & design / Sections and pagelayouts

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?

eZ debug

Timing: Jan 20 2025 00:53:37
Script start
Timing: Jan 20 2025 00:53:37
Module start 'content'
Timing: Jan 20 2025 00:53:37
Module end 'content'
Timing: Jan 20 2025 00:53:37
Script end

Main resources:

Total runtime0.6761 sec
Peak memory usage4,096.0000 KB
Database Queries204

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 590.0859180.8359
Module start 'content' 0.00620.5554 770.9219637.4609
Module end 'content' 0.56160.1144 1,408.3828337.0625
Script end 0.6760  1,745.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.5602210.0002
Check MTime0.00140.2106210.0001
Mysql Total
Database connection0.00080.116010.0008
Mysqli_queries0.573484.81822040.0028
Looping result0.00170.25462020.0000
Template Total0.630793.320.3153
Template load0.00200.289620.0010
Template processing0.628792.998220.3144
Template load and register function0.00020.022910.0002
states
state_id_array0.00170.257110.0017
state_identifier_array0.00100.147620.0005
Override
Cache load0.00170.2473400.0000
Sytem overhead
Fetch class attribute can translate value0.00100.148050.0002
Fetch class attribute name0.00110.159370.0002
XML
Image XML parsing0.00620.921550.0012
class_abstraction
Instantiating content class attribute0.00000.002470.0000
General
dbfile0.03244.7859330.0010
String conversion0.00000.001130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs