Link feed link
Contents
Syntax
<txp:link_feed_link />
The link_feed_link tag is a single tag. Textpattern will replace this tag with an anchor to the site’s ‘links’ RSS feed.
Attributes
Tag will accept the following attributes (case-sensitive) as well as the global attributes :
category="category name"- Restrict to specified category. Note: the category name may be different to the title you typed when you created the category, as the names are sanitized for URL use. Check the Categories panel to ensure you are using the correct name.
- Values: category name.
- Default: current category.
flavor="value"- Whether to output a link to the RSS or Atom version of the feed.
- Values:
rssoratom. - Default:
rss. format="value"v4.0.4+- Whether to output HTML
<a>tag or<link>tag. - Values:
aorlink. - Default:
a. title="value"- HTML title attribute to be applied to link tag.
- Default: depends upon
flavorused, eitherRSS feedorAtom feed.
Common presentational attributes
These attributes, which affect presentation, are shared by many tags. Note that default values can vary among tags.
class="class name"v4.3.0+- HTML
classto apply to thewraptagattribute value. - Default: tag name or unset (see class cross-reference).
label="text"- Label prepended to item.
- Default: unset (but see label cross-reference for exceptions).
wraptag="element"- HTML element to wrap (markup) list block, specified without brackets (e.g.
wraptag="ul"). - Default: unset (but see wraptag cross-reference for exceptions).
Note: label and wraptag attributes are applicable only when using format of a (label used as link text).
Examples
Example 1: Atom feed link with custom label
<txp:link_feed_link flavor="atom" label="Commerce links" />
Genealogy
Version 4.3.0
class attribute added.
Version 4.0.4
format attribute added.