Skip to content

Commit

Permalink
Item9838: Add a %maint% parameter to the Template.
Browse files Browse the repository at this point in the history
 - With %twisty% set to off,  the group maintenance forms are all
   included inline.
 - With %maint% set to off, the group maintenance forms are not
   included.

Rendering time for 220 groups chaged from 23 seconds to approx. 4
seconds.   Left parameter unset by default, but included brief
help text below the Add Group form suggesting the setting.

git-svn-id: http://svn.foswiki.org/trunk@9611 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Oct 19, 2010
1 parent 970b5d9 commit ca0b059
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/data/Main/GroupViewTemplate.txt
Expand Up @@ -34,6 +34,7 @@
section="%IF{
"istopic '%USERSWEB%.%groupname%' AND
'%groupname%' != 'NobodyGroup' AND
'%maint%' != 'off' AND
'%USERSWEB%.%groupname%' allows 'change'
"
then="changegroup%IF{"'%twisty%' = 'off'" then="notwisty"}%"
Expand Down
13 changes: 13 additions & 0 deletions core/data/Main/WikiGroups.txt
Expand Up @@ -3,6 +3,17 @@
---+ Wiki Groups
This is a list of all known groups that can be used to define [[%SYSTEMWEB%.AccessControl][AccessControl]] in <nop>%WIKITOOLNAME%.

<!--
If a large number of groups are configured, the rendering performance of this
page can be significantly improved by enabling the following Set statement.
(Remove the #)

* #Set maint=off

With this enabled, the twisties and maintenance forms for each group are omitted
from this page. Maintenance can be done from the individual group topics.
-->

%TWISTY{
link="<img src='%ICONURLPATH{"persons"}%' /> %MAKETEXT{"Create a new group"}%"
mode="div"
Expand Down Expand Up @@ -38,6 +49,8 @@ This is a list of all known groups that can be used to define [[%SYSTEMWEB%.Acce
* A topic revision can be undone by a member of the [[%USERSWEB%.AdminGroup][AdminGroup]] if necesssary.

*Related topics:* [[%SYSTEMWEB%.AccessControl][AccessControl]], [[%WEBPREFSTOPIC%]], [[%WIKIUSERSTOPIC%]], [[%SYSTEMWEB%.WikiCulture][WikiCulture]]

<blockquote class="foswikiHelp">%X% If a large number of groups are configured, the rendering performance of this page can be significantly improved by disabling group maintenance from this page. Edit this topic for more information.</blockquote>
</div>
</div>
</div>
Expand Down

0 comments on commit ca0b059

Please sign in to comment.