limit the type of blocks allowed in a zone ?

Author Message

*- pike

Friday 20 August 2010 11:07:17 am

Hi

is there a way to limit which blocks are allowed to appear within a specific zone ? I was trying .. the code below (grrr, safari doesnt work well in these forums) .. but it has no effect on what shows up in the option element of the zone form ('add block') in the admin.

[mylayout_zone0]

AllowedTypes[]

AllowedTypes[]=myfunnyblock

---------------
The class eZContentObjectTreeNode does.

*- pike

Saturday 21 August 2010 7:38:14 am

hey, the 'related forum topics' actually showed a solution.

the above config would work, if I would apply the hack described here:

http://share.ez.no/forums/extensions/ez-flow/solution-for-avoid-all-block-in-adding-list-of-zone-layout

(the first one)

*-pike

---------------
The class eZContentObjectTreeNode does.

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

Main resources:

Total runtime0.2427 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.0054 589.1953152.6406
Module start 'layout' 0.00540.0045 741.835939.4922
Module start 'content' 0.00990.2314 781.3281453.5156
Module end 'content' 0.24130.0013 1,234.84388.1172
Script end 0.2426  1,242.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00301.2167160.0002
Check MTime0.00120.5093160.0001
Mysql Total
Database connection0.00050.189110.0005
Mysqli_queries0.205884.8090540.0038
Looping result0.00050.2005520.0000
Template Total0.209986.520.1049
Template load0.00190.766020.0009
Template processing0.208085.720820.1040
Template load and register function0.00020.072510.0002
states
state_id_array0.00070.300010.0007
state_identifier_array0.00080.327620.0004
Override
Cache load0.00150.6032120.0001
Sytem overhead
Fetch class attribute can translate value0.00060.246010.0006
Fetch class attribute name0.00110.469820.0006
XML
Image XML parsing0.00010.041610.0001
class_abstraction
Instantiating content class attribute0.00000.002520.0000
General
dbfile0.00060.2665100.0001
String conversion0.00000.004140.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
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/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: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs