Render a tool to browse skill portals by using a tag clou
Documentation
Parameters
- QUERY: comma separated list of tags to be searched for in the archive
- LIMIT
- SKIP
Css
Implementation
%STARTINCLUDE%<!-- -->
~~~ <noautolink>
%~~ TAGCLOUD{
~~~ "$percntDBQUERY{
~~~ \"TopicType=~'\b(SkillsPortal|TriPage)\b'
~~~ $percntFORMATLIST{\"%IFDEFINED{"%QUERY%"}%\"
~~~ header=\" AND \"
~~~ format=\"( SkillsLevel1=~'\b$1\b' OR
~~~ SkillsLevel2=~'\b$1\b' OR
~~~ SkillsLevel3=~'\b$1\b' OR
~~~ SkillsLevel4=~'\b$1\b'
~~~ )\"
~~~ separator=\" AND \"
~~~ }$percnt
~~~ \"
~~~ web=\"%BASEWEB%\"
~~~ format=\"
~~~ $formfield(SkillsLevel1),
~~~ $formfield(SkillsLevel2),
~~~ $formfield(SkillsLevel3),
~~~ $formfield(SkillsLevel4)
~~~ \" separator=\", \"
~~~ }$percnt"
~~~ buckets="200"
~~~ offset="100"
~~~ split="[,\s]+"
~~~ filter="off"
~~~ header="<div class=\"twikiPageForm tagCloud clsTagCloud\" id=\"skillsCloud\">"
~~~ group="<strong>$group</strong>"
~~~ format="<a rel=\"nofollow\" name=\"$term\"
~~~ style=\"font-size:$weight%;
~~~ color:$fadeRGB(194,199,204,0,102,204);\"
~~~ href=\"%SCRIPTURLPATH{"view"}%/%BASEWEB%/%BASETOPIC%?
*~~ $percntIFDEFINEDTHEN{\"%QUERY%\" as=\".*\b$term\b.*\" glue=\"off\"}$percnt
*~~ $percntFORMATLIST{\"%QUERY%\"
~~~ header=\"search=\"
~~~ unique=\"on\"
~~~ separator=\",\"
~~~ exclude=\"$term\"
~~~ }$percnt#result\"
~~~ class=\"current\"
~~~ $percntELSEDEFINED$percnt
*~~ $percntFORMATLIST{\"%IFDEFINED{"%QUERY%" then="$test,"}%$term\"
~~~ header=\"search=\"
~~~ unique=\"on\"
~~~ separator=\",\"
~~~ }$percnt#result\"
~~~ $percntFIDEFINED$percnt
~~~ $percntDBQUERY{topic=\"%BASEWEB%.$term\"
~~~ format=\" title='$formfield(Summary)'>$expand(Title or topic)</a>\"
~~~ }$percnt"
~~~ footer="</ul></div>"
~~~ }%
%IFDEFINEDTHEN{"%QUERY%" glue="off"}%
<a name="results"></a>
%~~ $nopDBCALL{"Applications.EmployeePortalApp.RenderSkillsCloudHitList"
~~~ QUERY="
*~~ %$nopFORMATLIST{"%QUERY%"
~~~ header=" AND "
~~~ format="( SkillsLevel1=~'\b$1\b' OR
~~~ SkillsLevel2=~'\b$1\b' OR
~~~ SkillsLevel3=~'\b$1\b' OR
~~~ SkillsLevel4=~'\b$1\b'
~~~ )"
~~~ separator=" AND "
~~~ }%"
~~~ LIMIT="%LIMIT%"
~~~ SKIP="%SKIP%"
~~~ PARAMS="search=%QUERY%"
~~~ HILITE="SkillsLevel1),$expand(SkillsLevel2),$expand(SkillsLevel3),$expand(SkillsLevel4"
~~~ }%
%FIDEFINED%
~~~ </noautolink>
<!-- -->%STOPINCLUDE%
Test
Calls to 'RenderSkillsCloud'
Copyright
© 2007 Michael Daum
daum@wikiring.de
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.