'cause everyone should have a blog

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 BlogEntry6 BlogEntry 17 Apr 2009 – 18:56 JasonHill
 
A co-worker found a radio console from a wrecked vehicle in a dumpster and offered it to me. After straightening out the dents and making mounting plates for my radios, I installed it in my car.
2 BlogAbout BlogPage 31 May 2008 – 06:42 JasonHill
 
About the WIKITOOLNAME Blog
3 BlogEntry5 BlogEntry 21 May 2007 – 20:36 JasonHill
 
The faucets in my shower don't shut off all the way, so they drip constantly. Currently the money is not there to get them replaced. Simple fixes have been tried before, but the entire faucet simply needs to be replaced. I'm not in the bathroom enough for the dripping to bother me, however as the droplets reach the bottom, they splash all over the floor and sides of the tub. Because the tub is constantly damp, it is prone to growing things. I don't like things growing in my shower :). It is time for a solution!
4 Hacks FrontPage, SubjectCategory 21 May 2007 – 20:33 JasonHill
 
Things I built that aren't always tech. They may be ugly but they get the job done.
5 BlogEntry4 BlogEntry 17 Aug 2006 – 11:48 JasonHill
 
I don't remember how I got here, but I started playing around with http://widgets.yahoo.com/Yahoo Widgets, formerly known as Konfabulator. Judging by the number of widgets available, they didn't look like they were too hard to write, so I downloaded the SDK. Today, I announce my first widget.

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