You are here: Foswiki>Main Web>WebPreferences (revision 6)EditAttach
Foswiki.Main Web Preferences

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

Preferences:

  • Web specific background color: (Pick a lighter one of the %TWIKIWEB%.StandardColors)
    • Set WEBBGCOLOR = #FFFFC0

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

  • Users or groups who are not / are allowed to change topics in the Main web: (See %TWIKIWEB%.TWikiAccessControl)
    • Set DENYWEBCHANGE =
    • Set ALLOWWEBCHANGE =

  • Users or groups allowed to change this WebPreferences topic: (I.e. TWikiAdminGroup)
    • Set ALLOWTOPICCHANGE =

  • Web preferences that are not allowed to be overridden by user preferences:
    • Set FINALPREFERENCES = WEBTOPICLIST, DENYWEBVIEW, ALLOWWEBVIEW, DENYWEBCHANGE, ALLOWWEBCHANGE

Notes:
  • A preference is defined as:
    6 spaces * Set NAME = value
    Example:
    • Set WEBBGCOLOR = #FFFFC0
  • Preferences are used as %TWIKIWEB%.TWikiVariables by enclosing the name in percent signs. Example:
    • When you write variable %WEBBGCOLOR% , it gets expanded to #FFEFA6 .
  • 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 Foswiki engine (Perl scripts).

Related Topics:
  • %TWIKIWEB%.DefaultPreferences has site-level preferences.
  • WikiUsers has a list of user topics. User topics can have optional user preferences.
  • %TWIKIWEB%.TWikiVariables has a list of common %VARIABLES%.
  • %TWIKIWEB%.TWikiAccessControl explains how to restrict access by users or groups.
Edit | Attach | Print version | History: r18 | r7 < r6 < r5 < r4 | Backlinks | View wiki text | Edit WikiText | More topic actions...
Topic revision: r6 - 17 Jul 2001, PeterThoeny
 
This site is powered by FoswikiCopyright © CC-BY-SA by the contributing authors. All material on this collaboration platform is copyrighted under CC-BY-SA by the contributing authors unless otherwise noted.
Ideas, requests, problems regarding Foswiki? Send feedback