Documentation

This method is called by RenderCategory to display a summary for an object listed within the Category topic.

Parameters
  • OBJECT

Implementation

%STARTINCLUDE%%DBQUERY{topic="%OBJECT%"
   format="<div class='clsIndexItem clsTopicItem clsCategorizedTopicItem'>
     $percntDBCALL{\"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=\"&#44; \"
        footer=\"\\"}$dollarpercnt</span>\"
       }$percnt<!-- -->
       <div class='clsAuthorDateInfo'>
         <!-- -->$formatTime(info.date),
         <nop>$percntGETTOPICTITLE{\"
           $percntUSERINFO{\"$expand(info.author)\"
             format=\"$wikiusername\"
           }$percnt\"
         }$percnt
      </div>
     </div>
   </div>"
}%%STOPINCLUDE%

Test

%ATTACHMENTS{ "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"
Filed in ,
04 Nov 2013 - 12:17, AdminUser

%ATTACHMENTS{ "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
Filed in
04 Nov 2013 - 12:17, AdminUser

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.
Topic revision: r1 - 07 Jan 2013, ProjectContributor
Warning: Can't find topic Applications/ClassificationApp.WebLeftBarExample

 

Das Urheberrecht © liegt bei den mitwirkenden Autoren. Alle Inhalte dieser Kollaborations-Plattform sind Eigentum der Autoren.