Hola!

Wiadomość napisana przez Stefan Georg w dniu 2010-09-24, o godz. 04:05:

> Is there a way to add a checkbox for each block of an ezflow page? I ask 
> because someone would like to be able to check on or off whether to display 
> dates next to articles if it is checked. The template override could then 
> read this option in and decide whether to display or hide the dates.

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!

Ł.

> 
> -- 
> Sdk-public mailing list
> [email protected]
> http://lists.ez.no/mailman/listinfo/sdk-public

-- 
Sdk-public mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/sdk-public

Reply via email to