Skip to content

Commit c098bc9

Browse files
committed
Add url_title attribute to article tags
1 parent c109d47 commit c098bc9

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tags/article.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ Each field in the `textpattern` database table can be used as a sort key.
149149
: **Values:** `past`, `future`, `any` (both `past` and `future`) or a [PHP-compatible date format](https://secure.php.net/manual/en/datetime.formats.php). In the latter case, `time` will be considered as the end date of the interval started by `month` or `expired` attribute.
150150
: **Default:** `past`.
151151

152+
`url_title="value"` <span class="footnote warning">v4.9.0+</span>
153+
: Restrict to articles posted with the given url_title. Partial (wildcard) matches are permitted.
154+
: **Values:** Any valid string/SQL rege.
155+
: **Default:** unset.
156+
152157
### Note on 'article list' vs. 'individual article' context
153158

154159
The **article** tag is context-sensitive. It will produce different results depending on whether the page being viewed is an article list or an individual article. Article-list context includes the default (home) page, section landing pages, and category pages. Individual-article context applies on an article page (i.e. a page with a URL like `https://example.com/archives/24/my-article`).

tags/article_custom.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,11 @@ custom_field name <span class="footnote warning">v4.7.0+</span>
187187
: **Values:** Just enter the custom field name in the `article_custom` tag.
188188
: **Default:** `none`.
189189

190+
`url_title="value"` <span class="footnote warning">v4.9.0+</span>
191+
: Restrict to articles posted with the given url_title. Partial (wildcard) matches are permitted.
192+
: **Values:** Any valid string/SQL regex.
193+
: **Default:** unset.
194+
190195
### Common presentational attributes
191196

192197
These attributes, which affect presentation, are shared by many tags. Note that default values can vary among tags.

0 commit comments

Comments
 (0)