Need help?

Contact SCC

Email scicomp
Join #scicomp on Slack

Help us help you

Follow these guidelines when submitting a help request.

You are here: System » WebRecursiveTopicList

Web recursive topic list

24 Mar 2022 - 16:05 | Version 5 |

This can be included from the WebHome of a Web, to display its topics, as well as its first-level subwebs and their own topics inside a twisty.

Only actual pages are displayed there. Aka categories, utility topics starting with Web, are hidden,

Usage

To use, simply add:
%INCLUDE{"%SYSTEMWEB%.WebRecursiveTopicList"}%

The code

%STARTINCLUDE%
<ul>
%FORMATLIST{
    "%TOPICLIST{web="%BASEWEB%" separator=","}%"
    format="   <li> [[%BASEWEB%.$1]]</li>"
    separator="$n"
    exclude="^(.*Category|ClassifiedTopic|SlidesTemplate|UntaggedTopics|UncategorizedTopics|Web.*)"
}%
%WEBLIST{
    "   <li> [[$name.%HOMETOPIC%]] $percentTWISTY{showlink=$quot$percentJQICON{$quotfa-plus-square$quot}$percent$quot  hidelink=$quot$percentJQICON{$quotfa-minus-square$quot}$percent$quot mode=$quotspan$quot}$percent
$percentFORMATLIST{
$quot$percentTOPICLIST{web=$qname separator=$quot,$quot}$percent$quot
header=$quot<ul>$quot
format=$quot<li>[[$name.$1]]$quot
footer=$quot</ul>$quot
separator=$quot$dollarn$quot
exclude=$quot^(.*Category|ClassifiedTopic|SlidesTemplate|UntaggedTopics|UncategorizedTopics|Web.*)$quot
}$percent $percentENDTWISTY$percent</li>"
    separator="$n"
    subwebs="%BASEWEB%"
}%
</ul>
%STOPINCLUDE%

For centers

%STARTSECTION{"centers_list"}%<ul>%FORMATLIST{
    "%TOPICLIST{web="%BASEWEB%" separator=","}%"
    format="   <li> [[%BASEWEB%.$1]]"
    separator="$n"
    exclude="^(.*Category|ClassifiedTopic|SlidesTemplate|UntaggedTopics|UncategorizedTopics|Web.*)"
}%
%WEBLIST{
    "   <li> [[$name.%HOMETOPIC%]] $percentINCLUDE{$quot$name.%HOMETOPIC%$quot section=$quotcomplete_name$quot}$percent $percentTWISTY{showlink=$quot$percentJQICON{$quotfa-plus-square$quot}$percent$quot  hidelink=$quot$percentJQICON{$quotfa-minus-square$quot}$percent$quot mode=$quotspan$quot}$percent
$percentFORMATLIST{
$quot$percentTOPICLIST{web=$qname separator=$quot,$quot}$percent$quot
header=$quot<ul>$quot
format=$quot<li>[[$name.$1]]</li>$quot
footer=$quot</ul>$quot
separator=$quot$dollarn$quot
exclude=$quot^(.*Category|ClassifiedTopic|SlidesTemplate|UntaggedTopics|UncategorizedTopics|Web.*)$quot
}$percent $percentENDTWISTY$percent</li>"
    separator="$n"
    subwebs="%BASEWEB%"
}%</ul>
%ENDSECTION{"centers_list"}%
Copyright © Simons Foundation. All material on this collaboration platform is the property of the Simons Foundation.
This website is using cookies. More info. That's Fine