Forums / Extensions / eZ Flow / eZFlowOperations and ini-instance of 'block.ini'

eZFlowOperations and ini-instance of 'block.ini'

Author Message

Anja Lundin

Friday 13 March 2009 3:22:16 am

(I first put this under developer forum but I guess this is the proper place for my topic...)

Hi!
I have just recently started to laborate with eZ Flow and it seems like a great extension to me so far. I have now a question regarding dynamic blocks.

I have created my own dynamic block and I have specified the details in block.ini.append.php in ez403/settings/siteaccess/my_site/ and ez403/settings/siteaccess/my_site_admin/ It shows up in the admininterface and collects the items like it should. But the automatic is not working at all. I have used FetchClass=eZFlowLatestObjects. I publish a new article to the source but nothing happens when I run the cronjob.

I did a print_r of the variable blockINI in eZFlowOperations class. My new block is not available there. It looks like it is only the configurations in block.ini in extension/ezflow/settings/. Is it not possible to make an override of the block.ini and put it in my siteaccesses? Can I only put this configuration in the extension? All manual blocks in my configuration in ez403/settings/siteaccess/my_site/block.ini.append.php works fine. It is only when it comes to running the cronjob it fails.

Thanks in advance!

Anja Lundin, Novitell AB, Sweden

------------------------------------
Anja Lundin
Developer, Novitell AB
Sweden

www.novitell.se

Ly Lo Cong

Friday 13 March 2009 3:52:28 am

Hi,

try to put your block.ini in ez403/settings instead of ez403/settings/siteaccess/my_site_admin/.

If it's not working, try to specify the siteaccess when running the cronjob :

php runcronjobs.php -smy_site_admin ezflow

Ly

http://auth.ez.no/certification/verify/402698

Anja Lundin

Friday 13 March 2009 4:33:48 am

I have now put the blocks in block.ini.append.php in extension/ezflow/settings/siteaccess/my_site and /my_site_admin

When I run cronjobs I always use " -s my_site "... :-)

Still no change.

Do I really have to put the new blows directly in block.ini under ezflow/settings? I need to have different blocks for different siteaccesses....

------------------------------------
Anja Lundin
Developer, Novitell AB
Sweden

www.novitell.se

Elena Stoycheva

Thursday 14 May 2009 1:01:04 am

Hi, Anja,

I had the same problem as yours - I needed different blocks for the different siteaccesses in my project. The first thing that I did was to put my custom block.ini files in each of the siteaccesses. I think in your case you already did that as you put them respectively in ez403/settings/siteaccess/my_site/ and ez403/settings/siteaccess/my_site_admin/. Now, try to comment the defined blocks in the block.ini file of the ezflow extension. This way that file won't override your custom block.ini files as the system will take only your blocks definitions, but not those in the extension. That helped in my case.

I hope my post could be useful, but in case you already found another more efficient solution, I'll appreciate if you share it in the forum!

Good luck!

Iguana IT - http://www.iguanait.com

Anja Lundin

Thursday 14 May 2009 11:11:08 pm

Hi Elena!
It seems to work (so far). Thank you very much!

Best regards

Anja Lundin, Novitell AB, Sweden

------------------------------------
Anja Lundin
Developer, Novitell AB
Sweden

www.novitell.se