Textpattern logo

Help?

feed link

From Textbook

<txp:feed_link>

The feed_link tag can be used as either a single or container tag and is used to output an XHTML link to the site's articles' RSS feed. When used as a container tag, it will turn the contents into a link to the feed, otherwise the value of attribute "label" will be used as link text. Should be used in a page.

Contents

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: rss.
format="value"
Whether to output a (X)HTML a tag or a (X)HTML link tag.
Values: a or link.
Default: a.
section="section name"
Restrict to specified section.
Default: current section.
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 tab to ensure you are using the correct name.
Default: current category.
limit="integer"
Number of articles to display in the feed.
Default: depends upon preference setting.
title="value"
(X)HTML title attribute.
Default: depends upon flavor 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

Example 1: Display an RSS feed link for specific section and category

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

Example 2: Container example

<txp:feed_link wraptag="p"><img src="/path/to/rss-icon" /></txp:feed_link>

Genealogy

Version 4.0.4

  • format added.

Translations [?]...

About Textbook