Documentation
This method is called by
RenderCategory to display
a summary for an object of type
ClassifiedTopic.
Parameters
Implementation
%STARTINCLUDE%<!-- -->%CALC{"$SET(catinfo, 0)"}%
%DBQUERY{topic="%OBJECT%"
format="<div class='clsIndexItem clsTopicItem clsCassifiedTopicItem'>
$percntDBCALL{\"$web.$topic->Applications.RenderTopicThumbnail\" TYPE=\"plain\"}$percnt<!-- -->
[[$web.$topic][$expand(topictitle)]] $percntREDDOT{\"$web.$topic\"}$percnt
$expand('<div class=\"foswikiTopicSummary\">' and Summary and '</div>')<!-- -->
<div class='foswikiTopicInfo'>
$percntCATINFO{\"$web.$topic\"
header=\"<span class='clsCatInfo'>$dollarpercntMAKETEXT{\\"Filed in [_1]\\" args=\\"\"
separator=\", \"
footer=\"\\"}$dollarpercnt</span>$dollarpercntCALC{\\"$SET(catinfo, 1)\\"}$dollarpercnt\"
}$percnt$percntTAGINFO{\"$web.$topic\"
header=\"<span class='clsTagInfo'>$percntCALC{\"$IF($GET(catinfo),, $dollarpercntMAKETEXT{\\\"tagged [_1]\\\" args=\\\",$dollarpercntMAKETEXT{\\\"Tagged [_1]\\\" args=\\\")\"}$percnt\"
separator=\", \"
limit=\"5\"
footer=\"\\"}$dollarpercnt</span>\"
}$percnt<!-- -->
<div class='clsAuthorDateInfo'>
<!-- -->$formatTime(info.date),
<nop>$percntGETTOPICTITLE{\"
$percntUSERINFO{\"$expand(info.author)\"
format=\"$wikiusername\"
}$percnt\"
}$percnt
</div>
</div>
</div>
%CLEAR%"
}%<!-- -->%STOPINCLUDE%
Test
%ATTACHMENTS{
"Applications/ClassificationApp.TestTopic0"
name=".*\.(jpe?g|gif|png|bmp|svg|JE?PG|GIF|PNG|BMP|SVG)"
warn="off"
limit="1"
sort="comment:name"
reverse="off"
hidenull="on"
format="$percntIMAGE{
\"$name\"
topic=\"$web.$topic\"
align=\"right\"
type=\"plain\"
size=\"48x48>\"
crop=\"northwest\"
title=\"\"
tooltip=\"on\"
warn=\"off\"
}$percnt"
}%
Foo %REDDOT{"Applications/ClassificationApp.TestTopic0"}%
"foo bar"
%ATTACHMENTS{
"Applications/ClassificationApp.TestCategorizedTopic1"
name=".*\.(jpe?g|gif|png|bmp|svg|JE?PG|GIF|PNG|BMP|SVG)"
warn="off"
limit="1"
sort="comment:name"
reverse="off"
hidenull="on"
format="$percntIMAGE{
\"$name\"
topic=\"$web.$topic\"
align=\"right\"
type=\"plain\"
size=\"48x48>\"
crop=\"northwest\"
title=\"\"
tooltip=\"on\"
warn=\"off\"
}$percnt"
}%
TestCategorizedTopic1 %REDDOT{"Applications/ClassificationApp.TestCategorizedTopic1"}%
This is a test topic
Copyright
© 2008-2013 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.