You are here:
Foswiki
>
Applications Web
>
TopicType
>
TopicFunction
>
RenderRecentChanges
E
dit
A
ttach
Tags:
create new tag
,
view all tags
%TOC{depth="2"}% ---++ Documentation %STARTSECTION{"documentation"}% This uses solr and infintescroll to create a frontpage widget. ---+++++ Parameters * HEIGHT: height of scroll container, defaults to 40em * LIMIT: number of rows to render, defaults to 20 * PAGE: from which page to start rendering * THEWEB: the web to render recent changes for * FILTER: lucene filter to be added to the search query %ENDSECTION{"documentation"}% ---++ Implementation <verbatim class="tml"> %STARTINCLUDE%<!-- --> <div class="jqInfiniteScroll recentChanges {itemSelector:'.clsIndexItem', localMode:true, bufferPx:200}"> %DBCALL{"%WEB%.%TOPIC%" section="backend" LIMIT="%IF{"defined LIMIT" then="%LIMIT%" else="20"}%" PAGE="%IF{"defined PAGE" then="%PAGE%" else="0"}%" THEWEB="%IF{"defined THEWEB" then="%THEWEB%" else="%BASEWEB%"}%" FILTER="%IF{"defined FILTER" then="%FILTER%"}%" }% </div> <div class="jqInfiniteScrollNavi foswikiHidden"> <a href="%SCRIPTURLPATH{"view"}%/%WEB%/%TOPIC%?page=1;section=backend;skin=text;web=%IF{"defined THEWEB" then="%THEWEB%" else="%BASEWEB%"}%;filter=%IF{"defined FILTER" then="%FILTER%"}%;limit=%IF{"defined LIMIT" then="%LIMIT%" else="50"}%" class='jqInfiniteScrollNext'>More</a> </div> <literal><style> .recentChanges { overflow-y:auto; padding-right:1em; height:%IF{"defined HEIGHT" then="%HEIGHT%" else="40em"}%; } </style></literal> <!-- %JQREQUIRE{"infinitescroll"}% -->%STOPINCLUDE% </verbatim> ---++ Backend <verbatim class="tml"> %STARTSECTION{"backend"}%<noautolink> %DBQUERY{ "%URLPARAM{"filter" default="%FILTER%"}%" exclude="^(WebChanges|WebPreferences|WebTopicLinks|WebIndex|WebNotify|WebHome|WebLinks|TopCategory|Category|ClassifiedTopic|TopicType|WebTopicEditTemplate|WebAtom|WebRss|WebLeftBar|WebSearch.*)$" web="%URLPARAM{"web" default="%THEWEB%"}%" skip="%CALC{"$EVAL(%URLPARAM{"page" default="%PAGE%"}%*%URLPARAM{"limit" default="%LIMIT%"}%)"}%" limit="%URLPARAM{"limit" default="%LIMIT%"}%" sort="modified" reverse="on" format="$percntDBCALL{\"$web.$topic->RenderIndexItem\"}$percnt" separator="$n" }% </noautolink>%ENDSECTION{"backend"}% </verbatim> ---++ Test %DBCALL{"%TOPIC%" HEIGHT="20em"}% %DBCALL{"Applications.RenderFunctionCallers"}% ---++ Copyright ©2006-2013 Michael Daum http://michaeldaumconsulting.com %DBCALL{"Applications.GnuGeneralPublicLicense" section="notice"}% </verbatim>
ApplicationTopic
edit
TopicType
DocuTopic
,
TopicFunction
TopicTitle
Summary
renders a list of recent changes in a web
WikiApplication
none
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r1 - 04 May 2013, micha
Applications
Log In
or
Register
Tools
TopicTypes
DataForms
DataFormAttributes
TopicTemplates
TopicViews
TopicFunctions
Webs
Applications
ClassificationApp
Extensions
Main
System
Das Urheberrecht © liegt bei den mitwirkenden Autoren. Alle Inhalte dieser Kollaborations-Plattform sind Eigentum der Autoren.