Skip to content

Commit df15120

Browse files
committed
Update newer and older tags
1 parent 3abe158 commit df15120

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed

tags/newer.md

+9-10
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,11 @@ tags:
2121
<txp:newer />
2222
~~~
2323

24-
The **newer** tag is both a *single* tag and a *container* tag. The tag should be used in a page after an article tag.
24+
The **newer** tag is both a *single* tag and a *container* tag. Textpattern will replace this tag with a link to the next list of articles in the sort order. As a single tag it outputs the URL for the next list page. If used as a container, it will wrap the text or tag assigned to the link.
2525

26-
Textpattern will replace this tag with a link to the next list of articles in the sort order. The container tags wrap the text or tag assigned to the link. As a single tag it outputs the URL for the next list page.
26+
An article list consists of the assigned number of articles set by the [article tag](/tags/article). If there are no articles available having 'Newer' status (articles ranked higher, or later, in the present sort criteria than the article shown at the top of the present list) `<txp:newer />` will not display unless the `showalways` attribute is set. It is normally used in tandem with [older](/tags/older) or [pages](/tags/pages).
2727

28-
An article list consists of the assigned number of articles set by the article tag. If there are no articles available having 'Newer' status (articles ranked higher, or newer, in the present sort criteria than the present top of page article) `<txp:newer />` will not display unless the `showalways` attribute is set to `1`. It is normally seen used in tandem with [older](/tags/older).
29-
30-
Given a `<txp:article limit="5" />` tag on the page in question, `<txp:newer />` will page down five articles at a time from the most oldest post forward in time to the most recently posted article.
28+
Given a `<txp:article limit="5" />` tag on the page in question, `<txp:newer />` will page up five articles at a time from the oldest post forward in time to the most recently posted article.
3129

3230
Note: This tag is context-sensitive, meaning it will only fetch content from the section or category being viewed.
3331
{: .alert-block .information}
@@ -36,11 +34,6 @@ Note: This tag is context-sensitive, meaning it will only fetch content from the
3634

3735
Tag will accept the following attributes (**case-sensitive**) as well as the {% include atts-global-link.html %}:
3836

39-
`escape="html"` <span class="footnote warning">v4.3.0+</span>
40-
: Escape [HTML entities](https://developer.mozilla.org/en-US/docs/Glossary/Entity) such as `<`, `>` and `&`.
41-
: **Values:** See the [tag escaping](/tags/learning/#tag-escaping) documentation for all possible values.
42-
: **Default:** `html`.
43-
4437
`rel="text"` <span class="footnote warning">v4.7.0+</span>
4538
: [HTML rel attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes) to be applied to link.
4639
: **Default:** unset.
@@ -62,6 +55,12 @@ Tag will accept the following attributes (**case-sensitive**) as well as the {%
6255
<txp:newer rel="prev">Newer</txp:newer>
6356
~~~
6457

58+
or, to render the text in the current site language:
59+
60+
~~~ html
61+
<txp:newer rel="prev"><txp:text item="newer" /></txp:newer>
62+
~~~
63+
6564
### Example 2: Single tag - link with image
6665

6766
~~~ html

tags/older.md

+8-9
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@ tags:
2121
<txp:older />
2222
~~~
2323

24-
The **older** tag is both a *single* tag and a *container* tag. The tag should be used in a page after an article tag.
24+
The **older** tag is both a *single* tag and a *container* tag. Textpattern will replace this tag with a link to the previous list of articles in the sort order. As a single tag it outputs the URL for the previous list page. If used as a container, it will wrap the text or tag assigned to the link
2525

26-
Textpattern will replace this tag with a link to the previous list of articles in the sort order. The container tags wrap the text or tag assigned to the link. As a single tag it outputs the URL for the previous list page.
27-
28-
An article list consists of the assigned number of articles set by the article tag. If there are no articles available having 'Older' status (articles ranked lower, or later, in the present sort criteria than the present bottom of page article) `<txp:older />` will not display unless the `showalways` attribute is set to `1`. It is normally seen used in tandem with [newer](/tags/newer).
26+
An article list consists of the assigned number of articles set by the [article tag](/tags/article). If there are no articles available having 'Older' status (articles ranked lower, or earlier, in the present sort criteria than the article shown at the bottom of the present list) `<txp:older />` will not display unless the `showalways` attribute is set. It is normally used in tandem with [newer](/tags/newer) or [pages](/tags/pages).
2927

3028
Given a `<txp:article limit="5" />` tag on the page in question, `<txp:older />` will page down five articles at a time from the most recent post back in time to the oldest.
3129

@@ -36,11 +34,6 @@ Note: This tag is context-sensitive, meaning it will only fetch content from the
3634

3735
Tag will accept the following attributes (**case-sensitive**) as well as the {% include atts-global-link.html %}:
3836

39-
`escape="html"` <span class="footnote warning">v4.3.0+</span>
40-
: Escape [HTML entities](https://developer.mozilla.org/en-US/docs/Glossary/Entity) such as `<`, `>` and `&`.
41-
: **Values:** See the [tag escaping](/tags/learning/#tag-escaping) documentation for all possible values.
42-
: **Default:** `html`.
43-
4437
`rel="text"` <span class="footnote warning">v4.7.0+</span>
4538
: [HTML rel attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes) to be applied to link.
4639
: **Default:** unset.
@@ -62,6 +55,12 @@ Tag will accept the following attributes (**case-sensitive**) as well as the {%
6255
<txp:older rel="next">Older</txp:older>
6356
~~~
6457

58+
or, to render the text in the current site language:
59+
60+
~~~ html
61+
<txp:older rel="next"><txp:text item="older" /></txp:older>
62+
~~~
63+
6564
### Example 2: Single tag - link with image
6665

6766
~~~ html

0 commit comments

Comments
 (0)