eZ Community » Forums » Extensions » eZ Flow » ezBlcok ManualAddingOfItems enabled...
expandshrink

ezBlcok ManualAddingOfItems enabled and CustomAttributes

ezBlcok ManualAddingOfItems enabled and CustomAttributes

Thursday 11 December 2008 9:07:15 am - 5 replies

I have been using ezflow for a while now, and generally have found solutions or workarounds to most of my issues. However, I have not been able to find a way to get a "special" block that can still manually add items.

The exact instance I am having is a side by side comparison.
The requirements are all able to be met with the exception of a title for each section.

To add the It doesn't work to add the title for each section to the article since the items will be mixed, and thus a hybrid title is needed on occasion.

All I really need is
CustomAttributes[]=left_title
CustomAttributes[]=right_title

But if I set "ManualAddingOfItems=enabled" then the customattributes don't show up?

In the ezflow_set_1.0-1 guide it does say:
For special blocks disable the ability to manually add items in the block. SO I am guessing this is the expected behavior.

Does anyone have a solution or an idea?

Modified on Thursday 11 December 2008 9:08:27 am by A Costello

Thursday 11 December 2008 10:03:25 am

what is mean "add the title for each section to the article" ?

the title can be added in the template, if it's a special block. doesn't it ?

Thursday 24 November 2011 10:56:19 am

This seems to still be an issue in 4.5.0. Does anyone know more about this?

I want to be able to override the main title and caption, as well as define a limit for how many sub-objects to fetch in the block template. This is not possible as the custom attributes doesn't show up.

Thursday 24 November 2011 5:33:42 pm

Answering to top poster: to have a custom block where end user can add items is doable: instead of using ManualAddingOfItems, you should have used UseBrowseMode.

Eg: to add in a custom block a root_node attribute that the editor can use to select a node:

CustomAttributes[]=source_node_id
UseBrowseMode[source_node_id]=true

Of course the chosen nodes will not show up in a kind of "queue", as there is no queue concept for custom blocks.

If you want to have

- one object attribute to use as optional block-title, not 3 or 4 or them

- the editor choosing while editing bock if, for every added node, to use the main node title or the object's block_title

you could do like this:

CustomAttributes[]=source_node_id_1

UseBrowseMode[source_node_id_1]=true

CustomAttributes[]=node_1_use_alt_title

CustomAttributes[]=source_node_id_2

UseBrowseMode[source_node_id_2]=true

CustomAttributes[]=node_2_use_alt_title

Thursday 24 November 2011 5:35:36 pm

@Hein: custom attributes do show up in block editing template. Just make sure your block is custom and not manual or automatic (ie set "ManualAddingOfItems=disabled" and set no fetch function)

Thursday 24 November 2011 6:07:23 pm

FYI : Pull-request done by Peter Keung on this : https://github.com/ezsystems/ezflow/pull/17

Go +1 it peeps !

(Hein already did 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