Skip to content

Commit 092d129

Browse files
authored
Update article_custom.md
1 parent 9ddd8ff commit 092d129

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tags/article_custom.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ Tag will accept the following attributes (**case-sensitive**) as well as the {%
9696
: **Values:** `0` (no, don't include expired articles) or `1` (yes, include expired articles) or some English date.
9797
: **Default:** Setting of preference 'Publish expired articles'.
9898

99+
`fields="list"`
100+
: Retrieve only these (distinct) article fields, aggregated if necessary.
101+
: **Default:** unset (all fields).
102+
99103
`form="form name"`
100104
: Use specified form template to process each article.
101105
: **Default:** `default`.
@@ -327,7 +331,7 @@ Outputs the number of live articles belonging to the current section.
327331
### Example 9: filter field
328332

329333
~~~ html
330-
<txp:article_custom time="-1 year" fields="authorid, posted=max" sort="Posted DESC">
334+
<txp:article_custom time="-1 year" fields="authorid, max(posted)" sort="Posted DESC">
331335
<txp:author /> (<txp:posted />)
332336
</txp:article_custom>
333337
~~~

0 commit comments

Comments
 (0)