Extend Field

extend tagTop of Page

Tag : <ion:extend />

This tag is to be used as children of the tags : <ion:page />, <ion:article /> or <ion:media />

It must be used with its Extend Field children tag.
If you have defined one Extend Field which has the name "color", the tag <ion:extend:color /> will give you access to this field.

Extend children tags

In this table, we consider one Extend Field called "my-field".

TagReturnsExample
<ion:extend:my-field /> Nothing.
Parent tag for the asked Extend field
<ion:extend:my-field:label /> Label as defined in the definition of the field
<ion:extend:my-field>
<ion:label />
</ion:extend:my-field>
<ion:extend:my-field:value /> Value of the Extend Field in the context of its parent.
Returns the default value if set in the field definition.
<ion:extend:my-field>
<ion:value />
</ion:extend:my-field>
<ion:extend:my-field:options /> Available options for Extend Fields with multiple choices (Radio, Checkboxes, Select).
<ion:extend:my-field>
<ion:options>
<ion:value/> : <ion:label/>,
</ion:options>
</ion:extend:my-field>
<ion:extend:my-field:values /> Sleected values for Extend Fields with multiple possible values (Radio, Checkboxes, Select)
<ion:extend:my-field>
<ion:values>
<ion:value/> : <ion:label/>,
</ion:values>
</ion:extend:my-field>

Medias and LinksTop of Page

Available from 1.0.7

Tag

ReturnsExample
<ion:extend:my-field:medias /> Loops in medias if my-field is of type "medias"
   <ion:extend>
<ion:my-field>
<ion:medias type="picture">
<ion:media:url />
</ion:medias>
</ion:my-field>
</ion:extend>
<ion:extend:my-field:links /> Loops in links if my-field is of type "Internal Link"
   <ion:extend>
<ion:my-field>
<ion:links>
<ion:title /> : <ion:url />
</ion:links>
</ion:my-field>
</ion:extend>