RenderTopicThumbnail
Display thumbnail image for a topic

Documentation

Parameters
  • OBJECT: topic to generate a thumbnail for
  • ALIGN: optional alignment of image, defaults to right
  • SIZE: optional size of thumbnail
  • TYPE: image rendering type, see documentation of ImagePlugin, defaults to simple
  • CROP
  • TOOLTIP: switch on/off tooltips for thumbnails, defaults to on

Implementation

%STARTINCLUDE%%DBQUERY{
   "thumbnail"
   topic="%OBJECT%" 
   format="$percntIMAGE{
      \"$expand(thumbnail)\"
      topic=\"$web.$topic\"
      align=\"%ALIGN{default="right"}%\"
      size=\"%SIZE{default="48x48^"}%\"
      type=\"%TYPE{default="simple"}%\"
      crop=\"%CROP{default="on"}%\"
      output=\"png\"
      tooltip=\"%TOOLTIP{default="on"}%\"
   }$percnt"
}%%STOPINCLUDE%

Test

Calls to 'RenderTopicThumbnail'

Copyright

© 2006-2019 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 arbeitsgruppe.ch? Send feedback