Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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' )}
Expand Down Expand Up @@ -136,6 +137,10 @@
{/foreach}
</select>
{/case}
{case match = 'description'}
{set $custom_attribute_description = ezini( $block.type, concat( 'CustomAttributeDescription_', $custom_attrib ), 'block.ini' )}
<span id="block-custom_attribute-{$block_id}-{$loop_count}" class="textfield block-control" type="text" name="ContentObjectAttribute_ezpage_block_custom_attribute_{$attribute.id}[{$zone_id}][{$block_id}][{$custom_attrib}]">{$custom_attribute_description}</span>
{/case}
{case}
<input id="block-custom_attribute-{$block_id}-{$loop_count}" class="textfield block-control" type="text" name="ContentObjectAttribute_ezpage_block_custom_attribute_{$attribute.id}[{$zone_id}][{$block_id}][{$custom_attrib}]" value="{$block.custom_attributes[$custom_attrib]|wash()}" />
{/case}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down