RenderIndexItem
Fallback to render a summary for WikiTopic that does not have a type specific version of to render an index item

02 May 2019 - 19:27 | Version 1 |

Documentation

This method is called by RenderCategory to display a summary for an object. This method serves as a final fallback when no other TopicType-specific method was found.

Parameters
  • OBJECT

Implementation

%STARTINCLUDE%%DBQUERY{topic="%OBJECT%"
   format="<div class='clsIndexItem clsTopicItem'>
      $percntDBCALL{\"$web.$topic->Applications.RenderTopicThumbnail\"  
         TYPE=\"plain\" 
         ALIGN=\"right\" 
         CROP=\"west\" 
      }$percnt<!-- --> 
      <!-- -->[[$web.$topic][$expand(topictitle)]]&nbsp;$percntREDDOT{\"$web.$topic\"}$percnt
      $expand('<div class=\"foswikiTopicSummary\">' and Summary and '</div>')<!-- -->
      <div class='foswikiTopicInfo'>
         <!-- -->$formatTime(info.date) 
         <!-- -->$percntUSERINFO{\"$expand(info.author)\"
           format=\"<span class='foswikiRevisionSep'>&#124;</span> <nop>$dollarpercntGETTOPICTITLE{\\"$wikiusername\\"}$dollarpercnt\"
         }$percnt
         <!-- -->$percntIF{\"'$expand(total_likes)'>0\"
            then=\"<span class='foswikiRevisionSep'>&#124;</span> <span class='clsLikeInfo'>$percntTRANSLATE{\"[quant,_1,like,likes]\" args=\"$expand(total_likes)\"}$percnt</span>\"
         }$percnt
     </div></div>"
}%%STOPINCLUDE%

Test

RenderIndexItem 
Fallback to render a summary for WikiTopic that does not have a type specific version of to render an index item
21 September 2015 | Applications

Calls to 'RenderIndexItem'

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