layout problem

Author Message

philumo luan

Monday 20 August 2007 2:42:05 am

im new member in ezpublish.

i have some problem and hope getting the feed back from all of you.

when i create pagelayout.tpl. Because i have 2 layout must to show on the pagelayout.tpl so i write a If condition but its wrong .

my conditions are :
when the page is loaded at first time which will show welcome layout and when we click on the link in this welcomepage we will go to o ther layout but this layout have to be load on this pagelayout too.

pls help me.

thanks you

Felix Laate

Monday 20 August 2007 4:07:05 am

Hi Philumo,

welcome to the eZ Publish community!

You could do something like this:

{if eq($module_result.node_id,2)}
  Your frontpage (if it's node 2)
{else}
  The rest of your pages
{/if}

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

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 03:36:30
Script start
Timing: Jan 19 2025 03:36:30
Module start 'layout'
Timing: Jan 19 2025 03:36:30
Module start 'content'
Timing: Jan 19 2025 03:36:32
Module end 'content'
Timing: Jan 19 2025 03:36:32
Script end

Main resources:

Total runtime1.6102 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0131 589.0313152.6094
Module start 'layout' 0.01310.0057 741.640639.4297
Module start 'content' 0.01881.5898 781.0703520.1719
Module end 'content' 1.60860.0015 1,301.24228.1953
Script end 1.6101  1,309.4375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.2470160.0002
Check MTime0.00160.0974160.0001
Mysql Total
Database connection0.00190.116110.0019
Mysqli_queries1.554896.5603540.0288
Looping result0.00070.0419520.0000
Template Total1.555596.620.7777
Template load0.00220.134220.0011
Template processing1.553396.468620.7767
Template load and register function0.00010.009110.0001
states
state_id_array0.00130.079410.0013
state_identifier_array0.00380.237120.0019
Override
Cache load0.00180.1108170.0001
Sytem overhead
Fetch class attribute can translate value0.00110.069120.0006
Fetch class attribute name0.00100.062530.0003
XML
Image XML parsing0.00070.043320.0003
class_abstraction
Instantiating content class attribute0.00000.000430.0000
General
dbfile0.00080.0528160.0001
String conversion0.00000.000940.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs