r1 - 31 Aug 2006 - 15:09:44 - TWikiGuestYou are here: CWiki >  _BlogPlugin Web > TopicFunction > RenderWebChanges

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 RssViewTemplate TopicView 01 Jan 1970 - 00:00 [[Main.][]]
 
View for the rss feeds
2 BlogEntryViewTemplate TopicView 01 Jan 1970 - 00:00 [[Main.][]]
 
TopicView for BlogEntries
3 WebAliases AdminTool 01 Jan 1970 - 00:00 [[Main.][]]
 
Aliases for the WEB web
4 TopicDescription TWikiFormAttribute 01 Jan 1970 - 00:00 [[Main.][]]
 
describes the function of a topic
5 BlogLink TWikiFormAttribute, TopicType 01 Jan 1970 - 00:00 [[Main.][]]
 
TopicType that links to another news or blog site.

Calls to 'RenderWebChanges'

TopicForm
TopicType TopicFunction
TopicDescription Replacement for TWiki's default WebChanges
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
CWiki
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors. Ideas, requests, problems regarding CWiki? Send feedback.