txp:feed_link

The feed_link tag is a Single Tag. Textpattern will replace this tag with an XHTML link to the sites articles RSS feed. Use in Page or Column.

Syntax

The feed_link tag has the following syntactic structure…

<txp:feed_link />

Attributes

Tag will accept the following attributes (case-sensitive):

flavor="value"

Whether to output a link to the RSS or Atom version of the feed. Available values: rss or atom. Default is rss.

format="value"

Whether to output a (X)HTML a tag or a (X)HTML link tag. Available values: a or link. Default is a.

section="section name"

Restrict to specified section. Default is current section.

category="category name"

Restrict to specified category. Default is current category.

limit="integer"

Number of articles to display in the feed. Default depends upon How Many Articles on RSS? preference setting.

title="value"

(X)HTML title attribute. Default depends upon format used, either RSS feed or Atom feed.

label="value"

Link text for feed link when using format of a.

wraptag="tag"

(X)HTML tag (without brackets) to wrap around output when using format of a.

Examples

Display an RSS feed link for specific section and category, labelled "XML"

<txp:feed_link flavor="rss"section="about" category="General" label="XML" wraptag="p" />

Genealogy

Version 4.0.4

  • format added.
txp/feed_link.txt · Last modified: 2008/02/05 15:24 by hcgtv

Home Page | User Forums | Driven by DokuWiki
Copyright © 2008 xPattern