r36 - 04 Feb 2008 - 01:01:12 - PeterThoenyYou are here: TWiki >  Plugins Web > WebPreferences
Tags:
, create new tag

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 =

  • 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 =
      Search Plugins

  • 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 | r$rev - $date | $wikiusername |$n()| | $summary |||
    • Set PACKAGE_SEARCH_TABLE_PARAMS = sort="off" tablewidth="100%" columnwidths="1%, 39%, 15%, 45%"
    • Set PACKAGE_SEARCH_HEADER = | \"\" | Package | 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_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 | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r36 < r35 < r34 < r33 < r32 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo