Tags:
create new tag
, view all tags

Plugins Web Preferences

The following settings are web preferences of the TWiki.Plugins web. These preferences overwrite the site-level preferences in TWikiPreferences, and can be overwritten by user preferences (your personal topic, i.e. TWikiGuest in the TWiki.Main web)

Preferences:

  • Web specific background color: (Pick a lighter one of the StandardColors)
    • Set WEBBGCOLOR = #E3E9A5

  • List this web in the SiteMap:
    • If yes, set SITEMAPLIST to on, do not set NOSEARCHALL, and add the "what" and "use to..." description for the site map. Make sure to list only links that include the name of the web, e.g. Plugins.Topic links.
    • Set SITEMAPLIST = on
    • Set SITEMAPWHAT = Repository for TWiki Plugins, Skins and Add-Ons.
    • Set SITEMAPUSETO = ...demo, download, develop and discuss add-on features.

  • Exclude web from a web="all" search: (Set to on for hidden webs)
    • Set NOSEARCHALL =

  • Users or groups who are not / are allowed to view / change / rename topics in the Plugins web: (See TWikiAccessControl)
    • Set DENYWEBVIEW =
    • Set ALLOWWEBVIEW =
    • Set DENYWEBCHANGE =
    • Set DENYWEBCHANGE =
    • Set ALLOWWEBCHANGE =
    • Set DENYWEBRENAME =
    • Set ALLOWWEBRENAME = TWikiCommunityGroup

  • Web preferences that are not allowed to be overridden by user preferences:
    • Set FINALPREFERENCES = NOSEARCHALL, ATTACHFILESIZELIMIT, WIKIWEBMASTER, WEBCOPYRIGHT, WEBTOPICLIST, DENYWEBVIEW, ALLOWWEBVIEW, DENYWEBCHANGE, ALLOWWEBCHANGE, DENYWEBRENAME, ALLOWWEBRENAME

  • Broadcast message:
    • #Set BROADCASTMESSAGE =

  • Plugins web reports:
    • Set WEB_SEARCH_FORMAT = | $percntCALC{$SET(tc, $formfield(TopicClassification))$GET(tc)}$percnt | $topic $percntCALC{$SET(dl, 0)$IF($EXACT($GET(tc), AddOnPackage), $SET(dl, 1))$IF($EXACT($GET(tc), ContribPackage), $SET(dl, 1))$IF($EXACT($GET(tc), PluginPackage), $SET(dl, 1))$IF($EXACT($GET(tc), SkinPackage), $SET(dl, 1))$IF($GET(dl), - download download)}$percnt | $percntCALCULATE{$SET(epoch, $TIME($date GMT))$FORMATTIMEDIFF(min, 1, $TIMEDIFF($GET($epoch), $GET($now), minute))}$percnt ago - %REVISION%   | $wikiusername |$n()| | $summary |||
    • Set PACKAGE_SEARCH_TABLE_PARAMS = sort="off" tablewidth="100%" columnwidths="1%, 39%, 15%, 45%"
    • Set PACKAGE_SEARCH_HEADER = | \"\" | Extension | Download | Tested on TWiki |
    • Set PACKAGE_SEARCH_FORMAT = | TopicClassification).gif\" width=\"16\" height=\"16\" alt=\"$formfield(TopicClassification)\" title=\"$formfield(TopicClassification)\" /> | $topic | \"Download download | $formfield(TestedOnTWiki) |$n()| | $pattern(.*?\*\sSet\sSHORTDESCRIPTION\s\=([^\n\r]*).*) - version $pattern(.*?Version\:?\s*\|([^\\n\r\|]*)\|.*)
      Author: $pattern(.*?\sAuthors?:\s*\|\s*(.*?)\s*\|.*) - Changed: r$rev - $date - $wikiusername |||
    • Set PACKAGE_SEARCH_FOOTER = | Total: none ||||
    • Set TAG_SEARCH_HEADER = | | Extension | Download | Tested onTWiki |
    • #Set TAG_SEARCH_FORMAT = | TopicClassification).gif\" width=\"16\" height=\"16\" alt=\"$formfield(TopicClassification)\" title=\"$formfield(TopicClassification)\" /> | $topic | r$rev - $date | $wikiusername |$n()| | $summary
      Tags: $taglist |||
    • Set TAG_SEARCH_FORMAT = | $formfield(<a href="/cgi-bin/view/Plugins/TopicClassification" class="twikiLink">TopicClassification</a>) | $topic | Download this package download | $formfield(TestedOnTWiki) |$n()| | $pattern(.*?\*\sSet\sSHORTDESCRIPTION\s\=([^\\n\r]*).*) - version $pattern(.*?Version\:?\s*\|([^\\n\r\|]*)\|.*)
      Author: $pattern(.*?\sAuthors?:\s*\|\s*(.*?)\s*\|.*) - Changed: r$rev - $date - $wikiusername
      Tags: $taglist |||

Notes:

  • A preference is defined as:
    6 spaces * Set NAME = value
    Example:
    • Set WEBBGCOLOR = #FFFFC0
  • Preferences are used as TWikiVariables by enclosing the name in percent signs. Example:
    • When you write variable %WEBBGCOLOR% , it gets expanded to #E3E9A5 .
  • The sequential order of the preference settings is significant. Define preferences that use other preferences first, i.e. set WEBCOPYRIGHT before WIKIWEBMASTER since %WEBCOPYRIGHT% uses the %WIKIWEBMASTER% variable.
  • You can introduce new preferences variables and use them in your topics and templates. There is no need to change the TWiki engine (Perl scripts).

Related Topics:

Edit | Attach | Watch | Print version | History: r42 < r41 < r40 < r39 < r38 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r42 - 2015-03-05 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.