diff --git a/packages/ezflow_extension/ezextension/ezflow/design/standard/templates/block/edit/edit.tpl b/packages/ezflow_extension/ezextension/ezflow/design/standard/templates/block/edit/edit.tpl index 7c53d402..f5130453 100644 --- a/packages/ezflow_extension/ezextension/ezflow/design/standard/templates/block/edit/edit.tpl +++ b/packages/ezflow_extension/ezextension/ezflow/design/standard/templates/block/edit/edit.tpl @@ -86,6 +86,7 @@ $custom_attribute_types = array() $custom_attribute_names = array() $custom_attribute_selections = array() + $custom_attribute_description = '' $loop_count = 0} {if ezini_hasvariable( $block.type, 'CustomAttributes', 'block.ini' )} {set $custom_attributes = ezini( $block.type, 'CustomAttributes', 'block.ini' )} @@ -136,6 +137,10 @@ {/foreach} {/case} + {case match = 'description'} + {set $custom_attribute_description = ezini( $block.type, concat( 'CustomAttributeDescription_', $custom_attrib ), 'block.ini' )} + {$custom_attribute_description} + {/case} {case} {/case} diff --git a/packages/ezflow_extension/ezextension/ezflow/settings/block.ini b/packages/ezflow_extension/ezextension/ezflow/settings/block.ini index addc1bd2..c0314225 100644 --- a/packages/ezflow_extension/ezextension/ezflow/settings/block.ini +++ b/packages/ezflow_extension/ezextension/ezflow/settings/block.ini @@ -60,13 +60,17 @@ RootSubtree=1 # FetchParameters[...]=string # FetchParameters[...]=integer # CustomAttributes[]=node_id +# CustomAttributes[]=desc # CustomAttributes[]=color # Name of the custom attribute shown in the editorial interface # CustomAttributeNames[node_id]=Node ID +# CustomAttributeNames[desc]=Usage # CustomAttributeNames[color]=Color -# text / checkbox / select / string (default) +# text / checkbox / select / description / string (default) # CustomAttributeTypes[node_id]=string +# CustomAttributeTypes[desc]=description # CustomAttributeTypes[color]=select +# CustomAttributeDescription_desc=This selects the color. # CustomAttributeSelection_color[] # CustomAttributeSelection_color[blue]=Blue # CustomAttributeSelection_color[green]=Green