Template Tags

General Tags

%TITLE% - The title of the item

%URL% - The URL of the item

%DESCRIPTION% - The raw description / summary of the item

%DESCRIPTIONPLAIN% - The description / summary of the item with HTML removed.

%DESCRIPTIONPLAINWITHBR% - The same as %DESCRIPTIONPLAIN% but with line feeds respected.

%DESCRIPTIONUNESCAPED% - For tricky descriptions that come out double-encoded with the other choices.

Note that a comma followed by a number in any tag trims it to that length, so %DESCRIPTIONPLAIN,100% means a plain description of up to 100 characters in length. %DESCRIPTIONPLAIN,100NODOTS% removes the trailing dots used.

%DESCRIPTIONPLAIN,100WORD% - The description with HTML code removed and cut to 100 symbols or less preserving whole words.

%CONTENTENCODED% - Full content of the item. Please note that it works only if optional tag <content:encoded> (<content> for Atom) is present in source feeds.

%CONTENTENCODEDPLAIN% - Full content of the item with HTML removed.

%CONTENTENCODEDPLAIN,100% - Full content of the item with HTML removed of up to 100 characters in length.

%CONTENTENCODEDPLAIN,100NODOTS% - The same as above but without trailing dots.

%CONTENTENCODEDPLAIN,100WORD% - Full content with HTML code removed and cut to 100 symbols or less preserving whole words.

%CATEGORIES% - List of categories or tags to which the item belongs, comma separated.

%COUNTER% - Use it to number items in a widget. This tag outputs an integer number starting from 1, incremented by 1 each time when per-item part of your widget template code is called.

%FIRSTIMAGEFROMDESCRIPTION%,
%FIRSTIMAGEFROMCONTENT% - This tag returns the first image found in item's description or content and is rendered as follows:

<img src="picture.gif" height="300" width="200" alt="Sample" class="feed_informer_first_image" />

where basic attributes (height, width, alt) are inherited from the source XML code, and the predefined class "feed_informer_first_image" is assigned to each img tag to make it available for styling.

Date Tags

%YEAR% - The year (e.g. 2005)

%YEAR2% - The year in two digit form (e.g. 05)

%MONTH% - The month in numeric form (e.g. 9)

%MONTH2% - The month in two digit form (e.g. 09)

%MONTHLONG% - The item's month's full name (e.g. January)

%MONTHSHORT% - The item's month's short name (e.g. Jan)

%DAY% - The day of the month in numeric form (e.g. 4)

%DAY2% - The day of the month in two digit numeric form (e.g. 04)

%DAYLONG% - The item's weekday's full name (e.g. Monday)

%DAYSHORT% - The item's weekday's short name (e.g. Mon)

Time Tags

%TIME12% - The item's time in 12 hour format (e.g. 2:08 PM)

%TIME24% - The item's time in 24 hour format (e.g. 14:08)

%HOUR% - The item's hour (e.g. 2)

%HOUR2% - The item's hour in two digit form (e.g. 02)

%MINUTE% - The item's minute (e.g. 8)

%MINUTE2% - The item's minute in two digit form (e.g. 08)

%SECOND% - The item's second (e.g. 7)

%SECOND2% - The item's second in two digit form (e.g. 07)

%TIMEAGO,FULL% - The item's date in relative terms in full precision.. (e.g. "5 years, 2 days, 12 hours, 7 minutes, and 3 seconds ago")

%TIMEAGO% - The item's date in relative terms in middling precision (e.g. "5 years, 2 days ago")

%TIMEAGO,SHORT% - The item's date in relative terms of least precision (e.g."5 years ago" or "2 days ago" or "2 minutes ago")

Feed Tags

%SOURCENAME% - The item's feed's name / title (e.g. "My Blog")

%SOURCEURL% - The item's feed's regular URL (e.g. http://www.someblog.com/)

%SOURCEFEEDURL% - The URL of the item's source feed itself.

%SOURCEDESCRIPTION% - The item's feed's description (e.g. "A blog about nothing.")

%SOURCEID% - A unique ID number of the source. Ideal for putting into CSS class names for per-feed styling, etc.

Enclosure Tags

RSS/Atom enclosures are a way of attaching multimedia content to feeds by providing the URL of a file associated with an entry, such as an MP3 file to a music recommendation or a photo to a diary entry.

%ENCLOSUREURL% - URL says where the enclosure is located.

%ENCLOSURELENGTH% - Length says how big it is in bytes.

%ENCLOSURETYPE% - Type says what its type is, a standard MIME type.

Feed Informer also supports Media RSS (MRSS), an RSS extension that allows for a much more detailed description of the content to be delivered to the subscriber than is covered by the RSS standard. To learn more about it please click here: Media RSS Template Tags.

Tag Modifiers

%TAG,10% - When you use a tag and follow it with a comma and a number, the tag's output is truncated to that number of characters. For example, %DESCRIPTIONPLAIN,100% will show the first 100 characters of the description / summary of an item. This can be useful if you want to ensure certain elements in the digest don't go over a certain length, such as titles and descriptions, both of which can be long. Please note that this modifier only works with plain text tags, i.e. it won't work with tags that output text mixed with HTML tags, for example, %CONTENTENCODED%.

<lowercase> .. </lowercase> - Anything between these two tags is changed to be all in lower case.

<uppercase> .. </uppercase> - Anything between these two tags is converted to upper case.

<capitalize> .. </capitalize> - Anything between these two tags is capitalized / titleized.. It Means It Would Look Like This Text Here.

<ifdescription> .. </ifdescription> - Anything between these two tags is ONLY included IF the current item has a description. Use this to clean up digests which have combinations of items with no descriptions and longer descriptions.

<gsub from="text1" to="text2"> .. </gsub> - Performs a substitution from 'text1' to 'text2' within the block.