AVR32 Linux Developer Blog

Function: RenderAtom

Render rss an feed

See also: RenderRss, WebSyndication

Parameters

  • SEARCH: expression used to extract the items
  • LIMIT: number of items to include
  • TITLE: channel title
  • TEASEONLY: if defined only the Teaser will be shown, otherwise the full Text also

Implementation

%STARTINCLUDE%
*~~
<title>%TITLE%</title>
<subtitle type="html">%SITEMAPWHAT%</subtitle>
%~~ DBQUERY{"%SEARCH%" 
~~~   web="%INCLUDINGWEB%"
~~~   order="created" reverse="on" 
~~~   limit="1"
~~~   format="<updated>
*~~     $formatTime(info.date, '$year-$mo-$dayT$hour:$minute:$secondZ')
*~~     </updated>"
~~~ }%
*~~
<link rel="self" type="application/atom+xml"
~~~ href="%SCRIPTURL{"view"}%/%INCLUDINGWEB%/%INCLUDINGTOPIC%" />
<link rel="alternate" type="text/html"
~~~ hreflang="%LANGUAGES{format="$langtag" separator=","}%" 
~~~ href="%SCRIPTURL{"view"}%/%INCLUDINGWEB%/%INCLUDINGTOPIC%" />
<logo>%WEBLOGOIMG%</logo>
<generator uri="%SCRIPTURL{"view"}%/%TWIKIWEB%/BlogPlugin">
  TWiki %WIKIVERSION%, <nop>BlogPlugin %PLUGINVERSION{"BlogPlugin"}%
</generator>
<id>
*~~ tag:%HTTP_HOST%,%SERVERTIME{"$year-$mo-$day"}%:%INCLUDINGWEB%.%INCLUDINGTOPIC%
*~~ </id>
<rights>%WEBRSSCOPYRIGHT%</rights>
%~~ DBQUERY{"%SEARCH%" 
~~~   web="%INCLUDINGWEB%"
~~~   order="created" reverse="on" 
~~~   limit="%LIMIT%"
~~~   format="
*~~     <entry>$n
*~~       <title>
*~~         $expand(Headline or Name or name)
*~~       </title>$n
*~~       <link rel=\"alternate\" type=\"text/html\" 
~~~         href=\"%SCRIPTURL{"view"}%/$web/$topic\" />$n
*~~       <id>
*~~         tag:%HTTP_HOST%,$formatTime(info.date, '$year-$mo-$day'):$web.$topic
*~~       </id>$n
*~~       <updated>
*~~         $formatTime(info.date, '$year-$mo-$dayT$hour:$minute:$secondZ')
*~~       </updated>$n
*~~       <published>
*~~         $formatTime(createdate, '$year-$mo-$dayT$hour:$minute:$secondZ')
*~~       </published>$n
*~~       <content type=\"xhtml\">$n
*~~         <div xmlns=\"http://www.w3.org/1999/xhtml\">
*~~           $percntCALC{\"$IF($EXACT(BlogComment,$expand(TopicType)),$expand(Name) 
~~~             replies on \\"[[$expand(BaseRef)][$expand(@BaseRef.Headline)]]\\":)\"
~~~           }$percnt
~~~           $percntCALC{\"$IF($EXACT(TWikiTopic,$expand(TopicType)),$expand(TopicDescription))\"}$percnt
~~~           $expand(Teaser) 
~~~           $percntIFDEFINEDTHEN{\"%TEASEONLY%\"}$percnt
~~~           $percntELSEDEFINED$percnt
~~~           <p />$expand(Text)
~~~           $percntFIDEFINED$percnt
*~~         </div>$n
*~~       </content>$n
*~~       <author>$n
*~~         <name>$expand(BlogAuthor or Name)</name>$n
*~~         $percntIFDEFINEDTHEN{\"$expand(Url)\"}$percnt
*~~           <uri>$expand(Url)</uri>$n
*~~         $percntELSEDEFINED$percnt
*~~           <uri>%SCRIPTURL{"view"}%%MAINWEB%/$expand(BlogAuthor)</uri>$n
*~~         $percntFIDEFINED$percnt
*~~       </author>$n
*~~       <category term=\"$expand(SubjectCategory)\" label=\"$expand(SubjectCategory)\" />$n
*~~       <contributor>$n
*~~         <name>$expand(info.author)</name>$n
*~~       </contributor>$n
*~~     </entry>"
~~~ }%
*~~
%STOPINCLUDE%

Calls to 'RenderAtom'

TopicForm
TopicType: TopicFunction
TopicDescription: Render rss an feed
r1 - 2006-02-08 - 14:46:02 - TWikiContributor
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Atmel®, AVR® and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries.
All other trademarks are the property of their respective owners.