Documentation

This method is called by RenderCategory to display a summary for an object of type ClassifiedTopic.

Parameters
  • OBJECT

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)]]&nbsp;$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>$dollarpercntCALC{\\"$SET(catinfo, 1)\\"}$dollarpercnt\"
      }$percnt$percntTAGINFO{\"$web.$topic\" 
        header=\"<span class='clsTagInfo'>$percntCALC{\"$IF($GET(catinfo),&#44; $dollarpercntMAKETEXT{\\\"tagged [_1]\\\" args=\\\",$dollarpercntMAKETEXT{\\\"Tagged [_1]\\\" args=\\\")\"}$percnt\"
        separator=\"&#44; \"
        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"
Filed in , , tagged , ,
04 Nov 2013 - 12:17, AdminUser

%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
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.