You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _includes/atts-global.html
+24-5Lines changed: 24 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -11,12 +11,12 @@ <h3 id="common-global-attributes">Common global attributes</h3>
11
11
{% endunless %}
12
12
{% unless include.breakby == "" %}
13
13
<dt><code>breakby="integer(s)"</code></dt>
14
-
<dd>Used to group list items when separating by <code>break</code>. Possible values are lists of integers, like <code>2</code> (groups of 2 items) or <code>1,2</code> (alternate groups of 1 and 2 items). Otherwise, the value is evaluated on each loop and `break` happens as soon as it changes. Note that `string` must be enclosed in *double* quotes.</dd>
14
+
<dd>Used to group list items when separating by <code>break</code>. Possible values are lists of integers, like <code>2</code> (groups of 2 items) or <code>1,2</code> (alternate groups of 1 and 2 items). Otherwise, the value is evaluated on each loop and <code>break</code> happens as soon as it changes. Note that <code>string</code> must be enclosed in *double* quotes.</dd>
15
15
<dd><strong>Default:</strong> {% if include.breakby == null %}1 (unset){% else %}{{ include.breakby }}{% endif %} (see <ahref="/tags/tag-attributes-cross-reference#breakby">breakby cross-reference</a>). </dd>
16
16
{% endunless %}
17
17
{% unless include.breakform == "" %}
18
18
<dt><code>breakform="form name"</code></dt>
19
-
<dd>A form to be used as `break`, generally jointly with `breakby` attribute. The special `<+>` pattern in this form will be replaced with the list "chunk" accumulated when break happens.</dd>
19
+
<dd>A form to be used as <code>break</code>, generally jointly with <code>breakby</code> attribute. The special <code><+></code> pattern in this form will be replaced with the list "chunk" accumulated when break happens.</dd>
20
20
<dd><strong>Default:</strong> {% if include.breakform == null %}unset{% else %}{{ include.breakform }}{% endif %} (see <ahref="/tags/tag-attributes-cross-reference#breakform">breakform cross-reference</a>). </dd>
21
21
{% endunless %}
22
22
<dt><code>class="class name"</code></dt>
@@ -28,7 +28,7 @@ <h3 id="common-global-attributes">Common global attributes</h3>
28
28
<dd>The value to display if the tag's output is blank.</dd>
<dd>Alter the processing order of top-level tags inside a form/container. Tags are normally executed from top to bottom. If you wish to change this order, imagine Textpattern tags are numbered incrementally from 1 inside a container. To process tags 3 and 5 first, then 1, 2, and 4, specify <code>evaluate="3, 5"</code> in your container tag.</dd>
56
56
<dd><strong>Values:</strong> Any comma-separated numbers corresponding with the numerical position of primary (top-level) tags inside the container.</dd>
@@ -70,13 +70,32 @@ <h3 id="common-global-attributes">Common global attributes</h3>
70
70
<dd>The tag (without angle brackets) to wrap the label.</dd>
71
71
<dd><strong>Values:</strong> Any valid HTML tag, e.g. <code>h3</code> or <code>div</code>.</dd>
<dd>Sort the output by the given column(s) and order direction(s).</dd>
94
+
<dd><strong>Values:</strong> Specify any valid column name{% if include.sortvals != null %} from the ones given below{% endif %}, followed by a space and then either <code>asc</code> or <code>desc</code> to sort in ascending or descending order, respectively. Use <code>rand()</code> for [random sorting order](https://dev.mysql.com/doc/refman/5.7/en/mathematical-functions.html#function_rand).
95
+
{% if include.sortvals != null %}{{ include.sortvals }}{% endif %}
96
+
</dd>
97
+
<dd><strong>Default:</strong> {% if include.sort == null %}0{% else %}{{ include.sort }}{% endif %} (see <ahref="/tags/tag-attributes-cross-reference#sort">sort cross-reference</a>).</dd>
98
+
{% endunless %}
80
99
<dt><code>replace="string"</code></dt>
81
100
<dd>Replace the content stripped via the <code>trim</code> attribute.</dd>
82
101
<dd><strong>Values:</strong> Any valid string.</dd>
0 commit comments