BlogEntryRenderIndexItem
Render a summary for a BlogEntries

%REVINFO{ " $date - $hour:$min " rev=" IF{ "%NATMAXREV%!=%CURREV%" then="%CURREV%" }: Syntax error in '%NATMAXREV%!=%CURREV%' at '%NATMAXREV%!=%CURREV%' " topic="Applications/BlogApp.BlogEntryRenderIndexItem" }% | Version 1 |

Documentation

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

Parameters
  • OBJECT
  • THEICON

Implementation

%STARTINCLUDE%<!-- -->
%DBQUERY{topic="%OBJECT%"
  format="<div class='clsIndexItem clsTopicItem clsCassifiedTopicItem clearfix'>
    %IF{"defined THEICON" then="$percntJQICON{%THEICON%}$percnt"}%<!-- -->
    $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(publishdate) 
      <!-- -->$percntUSERINFO{\"$expand(info.author)\"
        format=\"<span class='foswikiRevisionSep'>&#124;</span> <nop>$dollarpercntGETTOPICTITLE{\\"$wikiusername\\"}$dollarpercnt\"
      }$percnt
      $percntCATINFO{\"$web.$topic\" 
        header=\" <span class='foswikiRevisionSep'>&#124;</span> <span class='clsCatInfo'>\" 
        exclude=\"TopCategory|%URLPARAM{"catname" default="%BASETOPIC%"}%\"
        separator=\"&#44; \"
        footer=\"</span>\"
      }$percnt$percntTAGINFO{\"$web.$topic\" 
        header=\" <span class='foswikiRevisionSep'>&#124;</span> <span class='clsTagInfo'>\" 
        separator=\"&#44; \"
        limit=\"5\"
        footer=\"</span>\"
      }$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

This is a test %REDDOT{"Applications.BlogApp.ThisIsATest"}%
Etiam sitx amet nisl odio. Mauris pretium consectetur feugiat. Nam volutpat.
30 April 2015 | ProjectContributor | , ,

Welcome to BlogPlugin 2.0 %REDDOT{"Applications.BlogApp.BlogEntry0"}%
test summary
02 May 2019 | ProjectContributor | News | , , , ,

Copyright

© 2005-2019 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.
Warning: Can't find topic Applications/BlogApp.WebLeftBarExample

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 Foswiki? Send feedback