Function: RenderBlogLinksInCategory

Render list of all BlogLinks of a given SubjectCategory

Parameters

  • CAT: name of a SubjectCategory
  • PARAMS: additional urlparams that are added to the links (optional)

Implementation

%STARTINCLUDE%
%~~ DBQUERY{"TopicType='BlogLink' 
~~~        %IFDEFINED{"%CAT%" then="AND SubjectCategory=~'\b%CAT%\b'"}%"
~~~        order="Name"
~~~        separator="$n" hidenull="on"
~~~        header="%IFDEFINED{"%CAT%" then="| *%CAT% links* ||"}%"
~~~        format="| <a href=\"%SCRIPTURLPATH{"view"}%/$web/$topic
*~~          %IFDEFINED{"%PARAMS%" then="?%PARAMS%"}%\">$formfield(Name)</a> |
~~~          $formfield(Headline) |"
~~~ }% 
%STOPINCLUDE%

Test

Calls to 'RenderBlogLinksInCategory'

Topic revision: r4 - 2009-06-04 - 14:26:33 - TWikiAdminUser
Blog.RenderBlogLinksInCategory moved from Blog.RenderFeedsInCategory on 2005-11-07 - 20:58 by MichaelDaum
 
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors. Ideas, requests, problems regarding TWiki? Send feedback.