AtomViewTemplate
View for the atom feeds

02 May 2019 - 05:27 | Version 1 |

%{
}%
%TMPL:P{"atomhead"}%%TMPL:P{"atombody"}%%TMPL:P{"atomfooter"}%
%{
}%

%{
}%
%TMPL:DEF{"atomhead"}%<?xml version="1.0" encoding="%CHARSET%" ?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>%WEB% - %WIKITOOLNAME%</title>
  <subtitle>%WEBSUMMARY%</subtitle>
  <link href="%SCRIPTURL{"view"}%/%WEB%" />
  <link href="%SCRIPTURL{"view"}%/%WEB%/%TOPIC%?%QUERYSTRING%" rel="self" />
  <updated>%DBQUERY{"%FILTER%" sort="modified" reverse="on" limit="1" format="$formatTime(info.date, '$year-$mo-$dayT$hour:$minute:$secondsZ')"}%</updated>
  <logo>%WIKILOGOIMG%</logo>
  <id>%SCRIPTURL{"view"}%/%WEB%</id>
  <rights>%WEBRSSCOPYRIGHT%</rights>
%TMPL:END%
%{
}%

%{
}%
%TMPL:DEF{"atomfooter"}%</feed>%TMPL:END%
%{
}%

%{
}%
%TMPL:DEF{"atombody"}%%DBQUERY{"%FILTER%" 
   exclude="WebTopicEditTemplate"
   sort="created" 
   reverse="on" 
   limit="%LIMIT%" 
   separator="$n"
   format="  <entry>
   <title>$expand(topictitle)</title>
   <id>%SCRIPTURL{"view"}%/$web/$topic</id>
   <link rel=\"alternate\" type=\"text/html\" href=\"%SCRIPTURL{"view"}%/$web/$topic\"/>
   <updated>$formatTime(createdate, '$year-$mo-$dayT$hour:$minute:$secondsZ')</updated>
   $percntFORMATLIST{\"$expand(Author or createauthor)\"
      split=\"\s*,\s*\"
      format=\"<author><name>$1</name></author>\"
   }$percnt$percntCATINFO{\"$web.$topic\" 
      format=\"<category label=\\"$title\\" term=\\"$dollartopic\\" />\"
      separator=\"$n        \"
   }$percnt$percntTAGINFO{\"$web.$topic\"
      format=\"<category term=\\"$dollarname\\" />\"
      separator=\"$n        \"
   }$percnt
   <content type=\"html\"><![CDATA[
$percntDBCALL{\"$web.$topic\"}$percnt
$percntTAGINFO{
   \"$web.$topic\"
   header=\"<p>%TRANSLATE{"Tags"}%: \"
   format=\"$dollarname\"
   footer=\"</p>\"
}$percnt
   ]]></content>
   </entry>"
}%
%TMPL:END%
%{
}%
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Middle Fork Home Wiki? Send feedback
Syndicate this site RSS