Article Related Tags · 6.06.04
The <txp:article /> tag
Being probably the most important of all TXP tags, the <txp:article /> tag is a single page column tag – due to it will appear on page templates – which will be replaced by one or more articles, depending on the context it is being processed.
If TXP detects we’re requesting a determinated article, it will show that article. Otherwise, it will show a list of articles.
Can take one or more of the following attributes:
- form: the TXP form used to format the article, which determines the parts of it that will be showed. For example, “lofi”, “default”, ..., if this attribute is omitted, the article form called “deafult” is used.
- limit: the number of articles to list. 10 by default, if this atrribute is omitted and we aren’t on a specific article page.
- listform: Starting from the γ1.18a version you can use this attribute in order to specify a different form to be used when we’re listing articles.
The <txp:article_custom /> tag
This is very similar to <txp:article />, and is intended to be used when a high degree of customization is required to show one or more articles. For this reason, it can take a lot of attributes:
- form: the TXP form used to format the article.
- limit: the number of articles to list.
- category: the category of the articles to show. By default, all categories will be included.
- section: the section of the articles to show. By default, all sections selected to be on front page will be included on front page, and only articles belonging to the section we’re on in the case of a section page.
- sortby:Criteria used to sorting articles. One of
- Posted: The date we asigned to the article. This is the default option if none is specified.
- Author: The author of the articles.
- Last Modification: The last updated articles.
- Title: Sort alphabetically using article titles.
- Section: Use the section of the articles to sort them.
- sortdir: one of “asc” or “desc” in function of we want to display articles – sorted by the previous criteria if specified – ascending (The first first) or descending (first the last one).
- excerpted: One of “y” or “n”, if we want to show only articles with or without excerpt.
- month: A month in the format “yyyy-mm” to specify to show only articles published at that month.
- keywors: A comma separated list of keywords?. If we specify this, only articles that matches those [all?] keywords on the correspondent field of the article, will be shown.
- listform: Starting from the γ1.18a version you can use this attribute in order to specify a different form to be used when we’re listing articles.
* * *

Comment
commenting closed for this article