eZ Community » Forums » Developer » New ez-flow Block
expandshrink

New ez-flow Block

New ez-flow Block

Monday 02 July 2012 6:17:12 pm - 3 replies

Hello,

I am trying to define a new block to create a series of galleries that will be loaded by a user. Well, anyway, I am using an extension based on ezdemo and changing the configuration as needed with ezflow loaded as well.

In my_extension/settings/block.ini.append.php file I added the following code:

 AllowedTypes[]=MultipleGallery

[MultipleGallery]
Name=Multiple Gallery
NumberOfValidItems=10
NumberOfArchivedItems=5
ManualAddingOfItems=enabled
ViewList[]
ViewList[]=multiple_gallery
ViewName[default]=Multiple Gallery

I also created an override template in my_extension/design/my_design/override/templates/block/multiple_gallery.tpl

Then in my_extension/settings/override.ini.append.php

I wrote the following code:

 [block_multiple_gallery]
Source=block/view/view.tpl
MatchFile=block/multiple_gallery.tpl
Subdir=templates
Match[type]=MultipleGallery
Match[view]=multiple_gallery

After clearing my cache, my new block does not appear in the add block list of my landing page.

Is there any bad configuration?

Any help would be very appreciated.

Thank you.

Monday 02 July 2012 8:30:10 pm

I've solved the problem.

I had a bad priority definition of my ini files. If it concernes to anyone the first extension to appear in site.ini should be the "in-use" extension.

Tuesday 03 July 2012 12:57:33 pm

Quote from Ricardo Ferreira :

I've solved the problem.

I had a bad priority definition of my ini files. If it concernes to anyone the first extension to appear in site.ini should be the "in-use" extension.

Keep in mind that from 4.4 and above, load ordering in site.ini is not reliable if ExtensionSettings->ExtensionOrdering is enabled.

Tuesday 03 July 2012 11:36:23 pm

Hi David,

Thank you for your update. I dind' knew about that extension and of course I didn't had it enabled.

Regards.

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from