2 different page layouts

Author Message

Negin Javadi

Sunday 12 December 2004 11:37:17 pm

Iwanna create a site wich has 2 different designs(1 for the index page & another for the rest of the site)specially I wanna have differnt menus in this parts of site could you please guide me to do that

n_j1981[at]yahoo[dot]com

Balazs Halasy

Monday 13 December 2004 12:12:28 am

Hi,

Suggestion 1:
Create different pagelayout templates and use the template override system in order to determine which pagelayout that should be used. For example you could segment your content node tree using sections and set up the override rules to show different pagelayouts for different sections.

Suggestion 2:
Use only one pagelayout and put some logic that (based on the node being viewed) controls the menus.

Balazs

Negin Javadi

Monday 13 December 2004 1:27:09 am

thank you Balazs could you explain the 1st suggestion please

n_j1981[at]yahoo[dot]com

Alex Jones

Monday 13 December 2004 7:01:36 am

Hi Negin, the documentation should get you started:

<b>Building an eZ publish site:</b> http://ez.no/ez_publish/documentation/toc/(from)/36647

The tutorial should walk you through the entire process to follow Balazs' first suggestion.

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

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 18 2025 11:22:14
Script start
Timing: Jan 18 2025 11:22:14
Module start 'layout'
Timing: Jan 18 2025 11:22:14
Module start 'content'
Timing: Jan 18 2025 11:22:15
Module end 'content'
Timing: Jan 18 2025 11:22:15
Script end

Main resources:

Total runtime0.7186 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 587.9141152.6250
Module start 'layout' 0.00530.0032 740.539139.4453
Module start 'content' 0.00840.7087 779.9844580.5078
Module end 'content' 0.71710.0014 1,360.492212.1641
Script end 0.7185  1,372.6563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4673160.0002
Check MTime0.00140.1947160.0001
Mysql Total
Database connection0.00060.086310.0006
Mysqli_queries0.669193.1222620.0108
Looping result0.00060.0873600.0000
Template Total0.687495.720.3437
Template load0.00210.286320.0010
Template processing0.685495.378320.3427
Template load and register function0.00020.033410.0002
states
state_id_array0.00070.102110.0007
state_identifier_array0.00070.098120.0004
Override
Cache load0.00180.2510190.0001
Sytem overhead
Fetch class attribute can translate value0.00080.105330.0003
Fetch class attribute name0.00090.125460.0002
XML
Image XML parsing0.00120.169930.0004
class_abstraction
Instantiating content class attribute0.00000.001560.0000
General
dbfile0.00090.1186220.0000
String conversion0.00000.001240.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/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: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs