<emit source="shortlinks"></emit>
Provided by module: CMS: Shortcut Links
Emit all shortlinks for a
given page or a specific shortlink.
Note!
|
This field is also available via the rxml:metadata()
function in XSL templates.
|
Attributes
- path
-
Emit the shortlink's for a given page path.
- shortlink
-
Emit info for a given shortlink.
- unique-paths
-
Only useful when no other attributes are given.
This will group all shortlinks's for the same path.
<!-- Emit all shortlinks's -->
<emit source='shortlinks'>
<b>&_.shortlink;</b> will redirect to <b>&_.path;</b><br/>
</emit>
<!-- Emit all shortlinks grouped by path -->
<dl>
<emit source='shortlinks' unique-paths=''>
<dt><b>&_.path;</b></dt>
<emit source='values' variable='_.shortlinks'>
<dd>&_.value;</dd>
</emit>
</emit>
</dl>
<!-- Emit the shortlinks for the current page -->
<emit source='shortlinks' path='&page.path;'>
<span>&_.shortlinks;</span>
<delimiter>, </delimiter>
</emit> |
-
&_.page_uuid; (provided by CMS: Shortcut Links)
The UUID of the page the shortlinks are assigned to
-
&_.path; (provided by CMS: Shortcut Links)
The path the shortlink will redirect to
-
&_.shortlink; (provided by CMS: Shortcut Links)
The shortlink
-
&_.shortlinks; (provided by CMS: Shortcut Links)
This is only available when the unique-paths attribute is given. In this case this is an array of shortlinks assigned to the &_.path;.