Some functions on this portal require JavaScript but your browser does not support it or it has been disabled.
Skip to main content
Thursday 23 September 2010 9:19:35 pm - 2 replies
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_checkboxCustomAttributeTypes[my_checkbox]=checkboxSupported 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!
This is possible but undocumented I'm afraid.
Example configuration is following:
[BlockTypeName] CustomAttributes[]=my_checkboxCustomAttributeTypes[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!