---+ Tips Of the Day Include This Page randomly picks a Tip of the day to display. The %HOMETOPIC% includes the part between the horizontal rules. %STARTINCLUDE% <dirtyarea> <div class="tipsOfTheDay"> <div class="tipsOfTheDayContents"> <h4 class="tipsOfTheDayHeader">%ICON{tip}% Tip of the Day</h4> <div class="tipsOfTheDayText"> %CALCULATE{ $SET(webtopic, $LISTRAND( %SEARCH{ "^TipTopic[0-9A-Z]" web="%SYSTEMWEB%" topic="TipTopic*" scope="topic" type="regex" casesensitive="on" nosearch="on" nototal="on" separator=", " format="$web.$topic" noheader="on" }%, %SEARCH{ "^(Custom)?TipTopic[0-9A-Z]" web="%HOMEWEB%" topic="CustomTipTopic*" scope="topic" type="regex" casesensitive="on" nosearch="on" nototal="on" separator=", " format="$web.$topic" noheader="on" }% )) $SET(pos, $FIND(., $GET(webtopic))) $SET(web, $REPLACE($GET(webtopic), $GET(pos), 100)) $SET(topic, $REPLACE($GET(webtopic), 1, $GET(pos))) }%%SEARCH{ "^%CALCULATE{"$GET(topic)"}%$" web="%CALCULATE{"$GET(web)"}%" topic="%CALCULATE{"$GET($topic)"}%" scope="topic" regex="on" nosearch="on" noheader="on" nototal="on" limit="1" format="<div class='tipsOfTheDayTitle'>[[$web.$topic][$pattern(.*?\-\-\-\+([^\n\r]+).*)]]</div> $summary(100, noheader) [[$web.$topic][%MAKETEXT{"Read on"}% <img src='%ICONURL{more-small}%' alt='Read more' title='Read on' />]]" }% </div> </div> </div> </dirtyarea> %STOPINCLUDE% --- *See also:* TipsOfTheDay, TipsOfTheDayAdmin
This topic: System
>
Category
>
AdminDocumentationCategory
>
Contribs
>
TipsContrib
>
TipsOfTheDay
>
TipsOfTheDayAdmin
>
TipsOfTheDayInclude
Topic revision:
15 Mar 2026,
UnknownUser
(raw view)
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki?
Send feedback