Share » Forums » General » eZFlow block: Is there a way to adda...

eZFlow block: Is there a way to adda checkbox for each block of an ezflow page?

eZFlow block: Is there a way to adda checkbox for each block of an ezflow page?

Thursday 23 September 2010 9:19:35 pm - 2 replies

Author Message

Peter Keung

Friday 24 September 2010 8:29:48 am

Answer from Ɓukasz Serwatka on sdk-public:

This is possible but undocumented I'm afraid.

Example configuration is following:

[BlockTypeName]
CustomAttributes[]=my_checkbox
CustomAttributeTypes[my_checkbox]=checkbox

Supported values for CustomAttributeTypes are following: text, checkbox, string. If not defined then string is default value.

For checkbox type GUI will render regular checkbox button with values 0 or 1.

Then in templates you can use it like

{if $block.custom_attributes.my_checkbox|eq('1')}
checked!
{else}
unchecked!
{/if}

Hope this helps!

http://www.mugo.ca
Mugo Web, eZ Partner in Vancouver, Canada

tofik sahraoui

Sunday 26 June 2011 4:30:14 pm

Is it possible to add a ezoe editor?

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

36 542 Users on board!

Forums menu