forked from ionize/ionize
-
Notifications
You must be signed in to change notification settings - Fork 0
FAQ : Tags
partikule edited this page Sep 23, 2011
·
25 revisions
Answers to common questions about tags.
<?php if ('<ion:media type="picture" attr="src" />' != '') :?>
<img src="<ion:media type='picture' attr='src' />" />
<?php endif;?>
<ion:articles>
<ion:title tag="h2" class="my_h2_class" id="my_h2_id" />
</ion:articles>
<?php if ('<ion:field name="link_type" />' == 'external') :?>
<a href="<ion:url />">go to External Link</a>
<?php endif ;?>
link_type can have 3 values :
- page
- article
- external
It can also be empty.
<ion:articles>
<div <?php if ('<ion:index />' == '1') :?> class="my-first-article" <?php endif;?> >
<ion:title />
...
</div>
</ion:articles>
(only from 0.9.7.5)
<ion:elements type="element_name">
<!-- Attributes of the Element -->
<ion:attribute name="name" /><br />
<ion:attribute name="title" /><br />
<!-- Loop into the element fields -->
<ion:fields>
<!-- Internal attribute of the field : name, label -->
<ion:attribute name="name" />, <ion:attribute name="label" /> :
<!-- User value for the field -->
<ion:attribute name="content" autolink="true" /><br />
</ion:fields>
</ion:elements>