Xing 4 TWiki

Function: RenderTvdProjectList

Extracts a list of projects someone participated in

Documentation

This function extracts a list of projects a person was involved in. The listed projects are classified empTvdProjectManager if the person managed that project and empTvdProjectMember otherwise.

Parameters
  • NAME: WikiName for which we render the list of projects he participated in
  • THEWEB: the web where to search for projects

Css
  • empTvdProjectList
  • empTvdProjectManager
  • empTvdProjectMember

Implementation

%STARTINCLUDE%
~~~ <div class="empTvdProjectList">
~~~ <noautolink>
%~~ DBQUERY{web="%THEWEB%"
~~~    "(TopicClassification=~'.*Project$' OR TopicType=~'.*Project')
~~~     AND !(ProjectStatusList=~'rejected|canceled')
~~~     AND ( ProjectMembers=~'\b%NAME%\b' OR ProjectManager=~'\b%NAME%\b'"
~~~    sort="ProjectStartDate"
~~~    header="<ul>"
~~~    footer="</ul>"
~~~    format="
~~~      <li class=\"
~~~        $percntIFDEFINED{\"$formfield(ProjectManager)\" as=\".*%NAME%.*\" 
~~~          then=\"empTvdProjectManager\"
~~~          else=\"empTvdProjectMember\"
~~~        }$percnt\">
~~~        [[$web.$topic][$expand(ProjectTitle or topic)]]
~~~        ($percntCALC{\"$FORMATTIME($TIME($formfield(ProjectStartDate)), $mon $year)\"}$percnt) 
~~~      </li>"
~~~ }%
~~~ </noautolink>
~~~ </div>
~~~
%STOPINCLUDE%

Test

    Calls to 'RenderTvdProjectList'

    Copyright

    © 2007 Michael Daum http://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.

    Applications.ApplicationTopic
    TopicType: DocuTopic, TopicFunction
    Summary: Extracts a list of projects someone participated in
    TWikiApplication: EmployeePortalApp
    r0 - 13 Jun 2007 - 04:41:03 - TWikiContributor
    © giant orange extension cord that reeks hip-hop, funk & soul