Main Web Preferences

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

Web Preferences Settings

These settings override the defaults for this web only. See full list of defaults with explanation.

  • Web settings:
    • Set WEBTOPICLIST = Users  |  Groups  |  Changes  |  Index  |  Search  |  Go
    • Set WEBBGCOLOR = #D277CC
    • Set SITEMAPWHAT = Welcome to TWiki... Users, Groups
    • Set SITEMAPUSETO = ...see who is registered on this TWiki
    • Set SITEMAPLIST = on

  • Default template for new topics for this web:
    • WebTopicEditTemplate? : Default template for new topics in this web. (Site-level is used if topic does not exist)
    • TWiki.WebTopicEditTemplate: Site-level default topic template

  • Comma separated list of forms that can be attached to topics in this web. See TWikiForms for more information.
    • Set WEBFORMS = UserForm?

  • Users or groups who are not / are allowed to view / change / rename topics in the Main web: (See TWikiAccessControl). Remove the # to enable any of these settings. Remember that an empty setting is a valid setting; setting DENYWEBVIEW to nothing means that anyone can view the web.
    • Set DENYWEBVIEW =
    • Set ALLOWWEBVIEW =
    • Set DENYWEBCHANGE =
    • Set ALLOWWEBCHANGE =
    • Set DENYWEBRENAME =
    • Set ALLOWWEBRENAME =

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

Web specific DmiSkin stylings

  • Skin name
    • Set SKIN = dmi
  • Background image nr and logo nr
    • Set WEBLOGONAME = dmimain
  • The following is necessary for the wysiwyg editor to pick up the dmi style, make sure the copy it from raw text
    • Set TINYMCEPLUGIN_INIT = mode:"textareas", editor_selector : "twikiTextarea",
save_on_tinymce_forms
true, cleanup : true, theme : "advanced", convert_urls : true, relative_urls : false, remove_script_host : false, setupcontent_callback : TWikiTiny? .setUpContent, urlconverter_callback : "TWikiTiny.convertLink", hide_instance_callback : TWikiTiny? .switchToRaw, show_instance_callback : TWikiTiny? .switchToWYSIWYG, twikipuburl_callback : "TWikiTiny.convertPubURL", save_callback : "TWikiTiny.saveCallback",

plugins : "table,searchreplace,autosave,paste,twikibuttons,twikiimage", twiki_secret_id : "WYSIWYG content - do not remove this comment, and never use this identical text in your topics", twiki_vars : { PUBURLPATH : "/pub", PUBURL : "http://wiki.issuecrawler.net/pub", WEB : "Main", TOPIC : "WebPreferences", ATTACHURL : "http://wiki.issuecrawler.net/pub/Main/WebPreferences", ATTACHURLPATH : "/pub/Main/WebPreferences", VIEWSCRIPTURL : "http://wiki.issuecrawler.net", SCRIPTSUFFIX: "", SCRIPTURL : "http://wiki.issuecrawler.net/bin" }, theme_advanced_toolbar_align : "left", twikibuttons_formats : [ { name: "Normal", el: "", style: null }, { name: "Heading 1", el: "h1", style: false }, { name: "Heading 2", el: "h2", style: false }, { name: "Heading 3", el: "h3", style: false }, { name: "Heading 4", el: "h4", style: false }, { name: "Heading 5", el: "h5", style: false }, { name: "Heading 6", el: "h6", style: false }, { name: "VERBATIM", el: "pre", style: "TMLverbatim" }, { name: "LITERAL", el: "span", style: "WYSIWYG_LITERAL" }, { name: "Protect on save", el: null, style: "WYSIWYG_PROTECTED" }, { name: "Protect forever", el: null, style: "WYSIWYG_STICKY" } ], paste_create_paragraphs : true, paste_create_linebreaks : false, paste_convert_middot_lists : true, paste_convert_headers_to_strong : false,

paste_remove_spans
true,
paste_remove_styles
true,
paste_strip_class_attributes
"all", theme_advanced_buttons1 : "twikiformat,separator,bold,italic,tt,colour,removeformat,separator,bullist,numlist,outdent,indent,separator,link,unlink,anchor,separator,attach,image,charmap,hr,separator,undo,redo,separator,search,replace",
theme_advanced_buttons2
"tablecontrols,separator,code,hide",
theme_advanced_buttons3
"",
theme_advanced_toolbar_location
"top", theme_advanced_resize_horizontal : false, theme_advanced_resizing : true,
theme_advanced_path
false, theme_advanced_statusbar_location : "bottom", content_css : "/pub/TWiki/TinyMCEPlugin/wysiwyg.css,/pub/TWiki/TWikiTemplates/base.css,/pub/TWiki/DmiSkin/style.css,/pub/TWiki/DmiSkin/colors.css"

Help on Preferences

  • A preference setting is defined by:
    3 or 6 spaces * Set NAME = value
    Example:
    • Set WEBBGCOLOR = #FFFFC0
  • A preferences setting can be disabled with a # sign. Remove the # sign to enable a local customisation. Example:
  • Preferences are used as TWikiVariables by enclosing the name in percent signs. Example:
    • When you write variable %WEBBGCOLOR% , it gets expanded to #D277CC
  • 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 your own preferences variables and use them in your topics and templates.

Related Topics

Tools

Topic revision: r25 - 31 Oct 2008 - 13:55:45 - ErikBorra