Skip to content

Commit 9ddd8ff

Browse files
authored
Addes 2nd example for the fields attribute
1 parent 41e30f0 commit 9ddd8ff

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tags/article_custom.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,12 +337,10 @@ Outputs recently active authors with their latest article publish dates
337337
### Example 9a: filter field
338338

339339
~~~ html
340-
<txp:article_custom time="-1 year" fields="authorid" sort="Posted DESC">
341-
<txp:author /> (<txp:posted />)
342-
</txp:article_custom>
340+
<txp:article_custom section="my,sections" custom_field2 fields="list(thisid)"><txp:article_id /></txp:article_custom>
343341
~~~
344342

345-
Outputs recently active authors with their latest article publish dates
343+
Outputs a list of article ids belonging to particular sections, and having the custom_field2 populated.
346344

347345
## Genealogy
348346

0 commit comments

Comments
 (0)