Link feed link

On this page:

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):

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: rss or atom.
Default: rss.
format="value" v4.0.4+
Whether to output HTML <a> tag or <link> tag.
Values: a or link.
Default: a.
title="value"
HTML title attribute to be applied to link tag.
Default: depends upon flavor used, either RSS feed or Atom 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 class to apply to the wraptag attribute 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

<txp:link_feed_link flavor="atom" label="Commerce links" />

Genealogy

Version 4.3.0

class attribute added.

Version 4.0.4

format attribute added.

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.