Function: RenderWebChanges

Replacement for TWiki's default WebChanges

Parameters

  • SKIP: topic offset
  • LIMIT: number of hits per page

Implementation

%STARTINCLUDE%
*~~
%~~ DBQUERY{
~~~    order="modified" 
~~~    limit="%IFDEFINED{"%LIMIT%" then="%LIMIT%" else="10"}%" 
~~~    reverse="on" 
~~~    skip="%SKIP%"
~~~    header="<noautolink>$n
~~~      | *&nbsp;* | *Topic* | *Type* | *Changed* | *Author* |"
~~~    format="
~~~      | $index 
~~~      | [[$web.$topic][$topic]] 
~~~      | $percntFORMATLIST{\"$formfield(TopicType)\" sort=\"on\" format=\"[[$web.$1][$1]]\"}$percnt
~~~      |  <span style=\"white-space:nowrap\">$formatTime(info.date)</span>  |  [[%MAINWEB%.$expand(info.author)][$expand(info.author)]]  |$n
~~~      | &nbsp; | <div style=\"margin:2px 10px 5px 0px;\">$flatten($expand(Teaser or Headline or TopicDescription or Text or 'no description')) </div>||||"
~~~    footer="$percntCALC{\"$dollarSET(nrTopics,$count)\"}$percnt$n</noautolink>"
~~~ }%
%~~ DBCALL{"RenderPageNavigation" 
~~~   SKIP="%SKIP%" 
~~~   MAX="%CALC{"$GET(nrTopics)"}%"
~~~   LIMIT="%IFDEFINED{"%LIMIT%" then="%LIMIT%" else="10"}%"
~~~ }%
*~~
%STOPINCLUDE%

Test

  Topic Type Changed Author
1 RenderSideBar TopicFunction 21 Mar 2006 – 02:36 TWikiAdminGroup
 
Render the sidebar navigation
2 BlogComment TopicType 21 Mar 2006 – 02:36 TWikiAdminGroup
 
TopicType for user comments
3 RenderHttpEquivs TopicFunction 21 Mar 2006 – 02:36 TWikiAdminGroup
 
Render a set of links to alternative formats for the current html page
4 RenderRecentComments TopicFunction 21 Mar 2006 – 02:36 TWikiAdminGroup
 
Render the list of recent comments in the WebSideBar
5 WebSyndication AdminTool, TWikiTopic 21 Mar 2006 – 02:36 TWikiAdminGroup
 
Syndication feeds for the WEB web

Calls to 'RenderWebChanges'

TopicForm
TopicType: TopicFunction
TopicDescription: Replacement for TWiki's default WebChanges

r2 - 21 Mar 2006 - 02:36 - TWikiAdminGroup
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding QBFreak.net? Send feedback
Powered by TWiki/Dakar Wed, 08 Feb 2006 build 8740