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'