Forums / Extensions / eZ Flow / block.ini.append.php in my own extension?

block.ini.append.php in my own extension?

Author Message

John Moritz

Tuesday 22 July 2008 12:52:15 am

Hello,

is it possible to extend ezFlow thru my custom extension? This means, that when i want to make new blocks or zone-layouts i dont have to make changes in the ezFlow extension folder but in my own extension folder. Would be great because i want to make my extension working out of the box, and if i have to make changes in ezFlow folder thats not possible.

At the moment i tryed to place the block.ini.append.php file in my settings Folder with this code:

<?php /*

[General]
AllowedTypes[]
AllowedTypes[]=block_test

[block_test]
Name=Block Test
ManualAddingOfItems=disabled
CustomAttributes[]=node_id
UseBrowseMode[node_id]=true
ViewList[]=testblock
ViewName[testblock]=Testblock

*/ ?>

But its not workin, i thought this will extend the block.ini, but its not. I cant see the block on my frontpage class.

Any ideas, is it possible or do i hav to make changes only in ezFlow Folder?

Bin LIU

Tuesday 22 July 2008 1:29:05 am

your can override the ini and the template in your own siteaccess.

=== 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

John Moritz

Tuesday 22 July 2008 2:37:04 am

dont understand what u mean with clean.
At the moment i putted the block.ini.append.php in the following folders of my extension.

my_extension/settings/block.ini.append.php
my_extension/settings/override/block.ini.append.php
my_extension/settings/siteacess/block.ini.append.php
my_extension/settings/siteaccess/eng/block.ini.append.php

I have no problems with the templates within, everythings working. If i go to the ezflow extension folder and change the block.ini.append.php i can see my block on the frontpage class. If i delete the entry of my custom block, its not showing.

Bin LIU

Tuesday 22 July 2008 2:46:22 am

sorry for my french english, clean means your own siteaccess

the simplest thing is, you can put your block.ini in the settings/override
it's override witch in the ezflow

=== 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

Carlos Revillo

Thursday 13 November 2008 9:14:42 am

I was looking for ez flow information and found this post. maybe you've got the solution now...

Anyway, we have the same issue. we think that the "problem" when you install ezflow,
your extension/ezflow/settings/block.ini.append.php looks like

[General]
AllowedTypes[]

So, you cannot add other types from extension, because ezflow extension "reset" the allowed types again

Quick fix could be comment the second line...

[General]
#AllowedTypes[]

It seems to be working in our testing servers, but if anyone knows if this could be a problem, please let me know.