Documentation
Parameters
- OBJECT
- BLOGENTRY_FULLTEXT: boolean switch to display the full blog text in the feed; set to off will only display the teaser section (default is on)
Implementation
%STARTINCLUDE%%DBQUERY{
topic="%OBJECT%"
datelanguage="en"
format="<item>
<title>$expand(topictitle)</title>
<link>%SCRIPTURL{"view"}%/$web/$topic</link>
<guid>%SCRIPTURL{"view"}%/$web/$topic</guid>
<dc:creator>$percntFORMATLIST{\"$expand(publishauthor)\" format=\"$dollarpercntGETTOPICTITLE{\\"%USERSWEB%.$1\\"}$dollarpercnt\"}$percnt</dc:creator>
<dc:date>$formatTime(info.date, '$year-$mo-$dayT$hour:$minute:$secondsZ')</dc:date>
$percntCATINFO{\"$web.$topic\"
format=\"<category>$dollartitle</category>\"
separator=\"$n\"
}$percnt $percntTAGINFO{\"$web.$topic\"
format=\"<category>$dollartitle</category>\"
separator=\"$n\"
}$percnt<!-- -->
<description> <![CDATA[
$percntDBCALL{\"%OBJECT%\" %IF{"'%BLOGENTRY_FULLTEXT{default="%FULLTEXT{default="on"}%"}%'!='on'" then="section=\\"teaser\\""}% warn=\"off\"}$percnt
<!-- -->
$percntTAGINFO{
\"$web.$topic\"
header=\"<p>%TRANSLATE{"Tags"}%: \"
format=\"$dollarname\"
separator=\", \"
footer=\"</p>\"
}$percnt
<!-- -->
]]></description>
</item>"
}%%STOPINCLUDE%
Test
Fulltext
Teaser
Copyright
© 2005-2025 Michael Daum
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.