Search result date

On this page:

Syntax

<txp:search_result_date />

The search_result_date tag is a single tag. This tag will provide the article posted date as returned by the search function.

Attributes

format="format string"
Override the default date format set in the Preferences panel.
Values: any valid strftime string values, since, iso8601 (ISO 8601 reference), w3cdtf (W3CDTF reference), or rfc822 (RFC 822 reference).
Default: the ‘Archive date format’ set in preferences.

Examples

Example 1: Displays the posting date of an article

<h3>
    <txp:permlink>
        <txp:title />
    </txp:permlink>
</h3>
<p>
    <txp:search_result_date /> | <txp:posted />
</p>

Used in a search results form, this offers a search result entry comprising a hyperlinked article title, and the date that article was posted.

Other tags used: title, permlink, posted.

See something wrong in this document? Outdated info, a broken link, faulty code example, or whatever? Please write an issue and we’ll fix it.