LinkDataModel
Model for xml content's <link> segments pointing to assets.
implements: hash, method, scalar
bundle: standard information structure (sismodel)
since 5.2.0
Model for xml content's <link> segments pointing to assets.
Model providing data for <link> segments defined in xml content and pointing to assets.
[used as scalar] ↦ String
since 5.2.0
get an informational text describing this model (developer information)
Defined hash keys
asset ↦ AssetModel
since 5.2.0
get the asset linked to
follow ↦ String
since 5.2.0
get follow value
fragment ↦ String
since 5.2.0
get the fragment of the link. this uses the "fragment" parameter of the xml tag.
linktype ↦ String
since 5.2.0
get links type ['mailto', 'download', 'external', 'internal']
target ↦ String
since 5.2.0
get target value
title ↦ String
since 5.2.0
get title of link
url ↦ String
since 5.2.0
get the target url of the link. this is calculated using the asset, if set, or the uses the "url" parameter of the xml tag.
Methods
[used as method](String:nav-group) ↦ LinkDataModel
since 5.2.0
switch this link model to use given nav-group
- Example:
linkModel('sports').url - get URL of linked asset resolved by a navigation item in group 'sports'