You are here: Applications » TopicType » TopicFunction » RenderRss

RenderRss
default implementation of an rss view of a single topic

02 May 2019 - 19:27 | Version 1 |

Documentation

This method is called by RssViewTemplate for each topic found. Note that this is a base-implementation for all TopicTypes processed. Individual TopicTypes may implement their own version called MyTopicTypeRenderRss. These are then called automatically using the %DBCALL{"web.topic->RenderRss"}% method call of the RssViewTemplate.

Parameters
  • OBJECT: the current topic

Implementation

%STARTINCLUDE%%DBQUERY{topic="%OBJECT%"
   format="<item rdf:about=\"%SCRIPTURL{"view"}%/$web/$topic\">
      <title>$expand(topictitle)</title>
      <link>%SCRIPTURL{"view"}%/$web/$topic</link>
      <dc:creator>$expand(@createauthor.topictitle)</dc:creator>
      <dc:date>$formatTime(createdate, '$year-$mo-$dayT$hour:$minute:$secondsZ')</dc:date>
      <dc:contributor>
         <rdf:Description link='%SCRIPTURL{"view"}%/%USERSWEB%/$expand(info.author)'>
            <rdf:value>$expand(info.author)</rdf:value>
         </rdf:Description>
      </dc:contributor>
      <description> <![CDATA[
$percntDBCALL{\"$web.$topic\"}$percnt
<!-- -->
      ]]></description>
   </item>"
}%%STOPINCLUDE%

Calls to 'RenderRss'

Copyright

© 2006-2015 Michael Daum http://michaeldaumconsulting.com

This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. For more details read the LICENSE.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, to the extent permitted by law; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

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 AustLII Communities? Send feedback
This website is using cookies. More info. That's Fine