You are here: Foswiki>Devel Web>WebPreferences (09 Jan 2010, AlsteR)Edit Attach

Foswiki.Devel Web Preferences

The following settings are web preferences of the Foswiki.Devel 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:

  • List this web in the %TWIKIWEB%.SiteMap:
    • If yes, Set SITEMAPLIST = on, 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. Devel.Topic links.
    • Set SITEMAPLIST = on
    • Set SITEMAPWHAT = Software development
    • Set SITEMAPUSETO = open publishing software options (active,sfactive,mir ...) and other web development stuff: syndication, internationalization, design

  • Image, URL and alternate tooltip text of TWiki logo: (can be overwritten by web preferences)
    • #Set WIKILOGOIMG = twikiRobot46x50.gif
    • Set WEBLOGOIMG = tech-bad.png
    • Set WIKILOGOURL = https://docs.indymedia.org
    • Set WIKILOGOALT = Indymedia Documentation Project
* logo for Gnu skin
    • #Set WEBLOGO = /pub/Global/WebPreferences/tech-bad.png
    • #Set WEBLOGO = /pub/Main/WebPreferences/tech.indy.jpg

  • Web specific background color: (Pick a lighter one of the %TWIKIWEB%.StandardColors)
    • Set WEBBGCOLOR = #CCCC00
  • Exclude web from a web="all" search: (Set to on for hidden webs)
    • Set NOSEARCHALL =

  • Default template for new topics and form(s) for this web:

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

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

  • Horizontal size of text edit box: (can be overwritten by user preferences)
    • Set EDITBOXWIDTH = 80
  • Vertical size of text edit box: (can be overwritten by user preferences)
    • Set EDITBOXHEIGHT = 25
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 #CCCC00 .
  • 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.
Topic revision: r14 - 09 Jan 2010, AlsteR
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback