Custom the layout list selon the section or object

Author Message

Bin LIU

Friday 18 April 2008 3:21:19 am

By default ezflow, it list all layout in each frontpage.

for custom the layout list selon the section or object

Overload the content/datatype/edit/ezpage.tpl line 13

{foreach ezini( 'General', 'AllowedTypes', 'zone.ini' ) as $allowed_type}

by

{foreach ezini( "Section_name or object ID or whatever param", 'AllowedTypes', 'zone.ini' ) as $allowed_type}

and zone.ini :

[section_toto]
AllowedTypes[]=4ZonesTOTO1
[section_titi]
AllowedTypes[]=3zoneTITI
AllowedTypes[]=2zoneTITI

=== Lagardère Active ===

Fetch random
http://projects.ez.no/la_fetch_random
LA Static Cache
http://projects.ez.no/lastaticcache
LA Bookmarks (jquery)
http://projects.ez.no/labookmark
LA Calendar (jquery)
http://projects.ez.no/lacalendar

My site ez
http://lingping.info

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 04:07:34
Script start
Timing: Jan 18 2025 04:07:34
Module start 'layout'
Timing: Jan 18 2025 04:07:34
Module start 'content'
Timing: Jan 18 2025 04:07:34
Module end 'content'
Timing: Jan 18 2025 04:07:34
Script end

Main resources:

Total runtime0.1047 sec
Peak memory usage4,096.0000 KB
Database Queries48

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.3203152.6563
Module start 'layout' 0.00530.0043 741.976639.5078
Module start 'content' 0.00970.0935 781.4844469.1563
Module end 'content' 0.10320.0015 1,250.64068.1016
Script end 0.1046  1,258.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00363.4177160.0002
Check MTime0.00131.2228160.0001
Mysql Total
Database connection0.00070.683210.0007
Mysqli_queries0.066563.5288480.0014
Looping result0.00050.4360460.0000
Template Total0.073670.420.0368
Template load0.00161.574620.0008
Template processing0.071968.722720.0360
Template load and register function0.00010.106810.0001
states
state_id_array0.00080.733810.0008
state_identifier_array0.00080.808220.0004
Override
Cache load0.00151.4336170.0001
Sytem overhead
Fetch class attribute can translate value0.00050.483610.0005
Fetch class attribute name0.00060.530120.0003
XML
Image XML parsing0.00050.509410.0005
class_abstraction
Instantiating content class attribute0.00000.002720.0000
General
dbfile0.00080.7274150.0001
String conversion0.00000.011440.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs