This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Setup & design » EZ Flow: Removing and overriding...
expandshrink

EZ Flow: Removing and overriding layout zones

EZ Flow: Removing and overriding layout zones

Tuesday 14 August 2012 11:21:09 am - 4 replies

I would like to remove and alter some of the default layout zones for frontpage when using EZ Flow. I know I could just hack the ezflow extension but I would prefer not to. 

I can add zone.ini.append.php in settings/override folder to add a new zone but dont see how I can alter or remove a zone without altering the ezflow extension. 

Tuesday 14 August 2012 3:18:41 pm

What exactly do you want to do?

- editing zone.ini you can decide which zones are available to editors to use for your "frontapges"

- every zone has a zone template. You can take control of that template (by cipying it into your own design and then editing it) to alter its behaviour

Tuesday 14 August 2012 4:18:32 pm

HeyJon

I don't really now what you want, but I can tell you someting about the zone.ini

In the zone.ini you can rewrite the default settings example:

 [General]
AllowedTypes[]
AllowedTypes[]=3ZonesLayout
 
[3ZonesLayout]
ZoneTypeName=3 Zonenlayout
Zones[]=left
Zones[]=middle
Zones[]=right
ZoneName[left]=left column
ZoneName[middle]=middle column
ZoneName[right]=right column
ZoneThumbnail=3layout.gif
Template=3zones_layout.tpl
AvailableForClasses[]=navigation

Description:

This configuration rewrite all zone settings from the basic ez flow installation (AllowedTypes) 
with the value "Template" you tell ez flow take this zone template for the output your blocks.

AvailableForClasses -> enable this configuration only the class in this case "navigation"

Tuesday 14 August 2012 6:19:44 pm

If I understand correctly, you want to remove a zone from a default layout?

In <ezpublish root>/settings/override/zone.ini.append.php just use a "Zones[]" to clear the default array, and then rebuild the zones array, like follows:

[DefaultLayoutName]
Zones[]
Zones[]=newzone
Zones[]=left
Zones[]=right 

But please note, that if you already have content and output your blocks based on the zone-index (like 0, 1 and 2 in the above example), your content will be messed up.

Modified on Tuesday 14 August 2012 6:20:15 pm by

Tuesday 14 August 2012 6:38:13 pm

Thanks Terry Duivesteijn that is exactly what I needed to know.

Your a star! happy.gif Emoticon

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from