Tips Of the Day Include

This Page randomly picks a Tip of the day to display. The System includes the part between the horizontal rules.

%ICON{tip}% Tip of the Day

%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="
[[$web.$topic][$pattern(.*?\-\-\-\+([^\n\r]+).*)]]
$summary(100, noheader) [[$web.$topic][%MAKETEXT{"Read on"}% Read more]]" }%


See also: TipsOfTheDay, TipsOfTheDayAdmin
Topic revision: r1 - 29 September 2023, ProjectContributor - This page was cached on 12 Jul 2025 - 14:25.

This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback