You are here: foswiki>Comunica Web>WebPreferences (14 Jan 2012, AdminUser)

Preferenze del Web Comunica

I seguenti parametri costituiscono le preferenze web del web Comunica. Essi sovrascrivono le preferenze di livello site in System.DefaultPreferences e Main.SitePreferences, e possono, a loro volta, essere sovrascritte dalle preferenze utente (dalle pagine personali, eg: WikiGuest nel web Main).

Controllo di accesso

  • Utenti o Gruppi che non hanno / hanno il permesso di vedere / cambiare / rinominare pagine nel webComunica: (vedi AccessControl). Rimuovi il # per abilitare ciascuno di questi parametri. Ricordati che puoi lasciare anche vuoto un parametro; Lasciare vuoto DENYWEBVIEW significa che chiunque può vedere il web.
    • #Set DENYWEBVIEW =
    • #Set ALLOWWEBVIEW =
    • #Set DENYWEBCHANGE =
    • Set ALLOWWEBCHANGE = AdminGroup, docenti, segreteria
    • #Set DENYWEBRENAME =
    • Set ALLOWWEBRENAME = AdminGroup

  • Utenti e gruppi che possono cambiare e rinominare questa pagina WebPreferences: (es., AdminGroup)

  • Preferenze Web che non possono essere sovrascritte dall'utente o dalle preferenze di pagina:
    • Set FINALPREFERENCES = NOSEARCHALL, ATTACHFILESIZELIMIT, WIKIWEBMASTER, WEBCOPYRIGHT, WEBTOPICLIST, DENYWEBVIEW, ALLOWWEBVIEW, DENYWEBCHANGE, ALLOWWEBCHANGE, DENYWEBRENAME, ALLOWWEBRENAME

Definizione delle preferenze web

I parametri sotto elencati sovrascrivono i defaults solo per questo web. Vedi per la lista completa dei defaults con relativa spiegazione?. Molti parametri sono commentati (preceduti dal segno #). Rimuovi il segno # per abilitare la personalizzazione locale del parametro.

  • Lista delle pagine del web Comunica:
    • #Set WEBTOPICLIST = %WEBTOPICLIST%
#66FF99

  • Colore di sfondo specifico del web: (Utilizza uno dei colori chiari tra quelli standard).
    • Set WEBBGCOLOR = #66FF99
    • Nota: Qesto parametro viene configurato automaticamente alla creazione di un nuovo web.

  • Immagine, URL e testo alternativo del tooltip del logo del web.
    Nota: Non aggiungere il proprio logo alla pagina %TWIKIWEB%.TWikiLogos; creare invece una pagina apposita per il proprio logo.

  • Lista questo web nella mappa del sito. Se desideri che il web compaia in lista, allora definisci SITEMAPLIST a on, non definire NOSEARCHALL, e aggiungi le descrizioni "cosa" and "serve per..." nella mappa del sito. Usa collegamenti che includano il nome del web, cioè Comunica.Topic.
    Nota: A differenza di altre variabili, la definizione di SITEMAPLIST non è ereditata dai web genitore ma deve essere ridefinita in ogni web che debba comparire nella mappa del sito
    • Set SITEMAPLIST = on
    • Set SITEMAPWHAT = Web destinato a raccogliere le comunicazioni prodotte dalla scuola
    • Set SITEMAPUSETO = ...ogni comunicazione (circolari, albi, ecc,ecc)
    • Nota: I parametri qui sopra sono configurati automaticamente al momento della creazione del web

  • Escudi il web dalla ricerca in tutti i web: (Metti on per i web nascosti).
    • Set NOSEARCHALL =
    • Nota: Questo parametro è configurato automaticamente alla creazione del web.

  • Previl collegamento automatico di WikiWords e acronimi (se messo a on); collega WikiWords (se vuoto); può essere sovrascritto dalle preferenze web:
    • #Set NOAUTOLINK =
    • Nota: puoi ancora usare la sintassi [[...][...]] per collegare le pagine se disabiliti il collegamento automatico delle WikiWord. La sintassi ... può essere usata per evitare i collegamenti all'interno di un blocco di testo.

  • Schema di default per le nuove pagine di questo web:
    • WebTopicEditTemplate?: schema di default per le nuove pagine di questo web. (Se la pagina non esiste viene utilizzata quella di livello site)
    • System.WebTopicEditTemplate: Schema di pagina di default di livello site

  • Lista separata da virgole delle forms che possono essere allegate alle pagine di questo web. Vedi %TWIKIWEB%.TWikiForms per ulteriori informazioni.
    • Set WEBFORMS =

Tools

help

Help on Preferences

  • A preference setting lets you define a simple macro that can be expanded in your output. Preference settings do not accept any parameters.
  • A preference setting looks like this:
    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:
       * #Set DENYWEBCHANGE = %USERSWEB%.UnknownUser
  • Macros defined using preference settings are expanded by enclosing the name in percent signs. Example:
    • When you write %WEBBGCOLOR%, it gets expanded to =#66FF99 =
  • You can introduce your own preference settings and use them in your topics and templates.
  • A preference settings is always taken from the most current topic revision, even when accessing previous revisions of a topic.
  • Preferences can be defined in a number of places:
    1. DefaultPreferences (Foswiki upgrades overwrite this topic)
    2. SitePreferences
    3. Sub-webs inherit the WebPreferences of their parent
    4. WebPreferences
    5. In user topics, if the user has one (yours is Main.WikiGuest)
    6. In (some) plugin documentation topics
    7. In the topic being accessed

HELP Set statements which occur at higher-numbered locations override settings of the same name at lower numbered levels, unless the macro was listed in a FINALPREFERENCES setting (finalised) at a lower-numbered level. In this case, the macro is locked to the value at that level; Set statements at higher-numbered levels are ignored.

If you are setting a preference and using it in the same topic, note that Foswiki reads all the preference settings from the saved version of the topic before it displays anything. This means you can use a macro anywhere in the topic, even if you set it somewhere inconspicuous near the end. But beware: it also means that if you change the setting of a macro you are using in the same topic, Preview will show the wrong thing, and you must Save the topic to see it correctly.

Also note that Foswiki always reads the setting from the most current topic revision, so viewing older revisions of a topic can show unexpected results.

The syntax for setting macros is the same anywhere:
[multiple of 3 spaces] * [space] Set [space] MACRONAME [space] = [space] value

Examples:
   * Set MACRONAME = value
      * Set MACRONAME = value
Spaces between the = sign and the value will be ignored. You can split a value over several lines by indenting following lines with spaces - as long as you don't try to use * as the first character on the following line.

Example:
   * Set MACRONAME = value starts here
     and continues here

Whatever you include in your Macro will be expanded on display, exactly as if it had been entered directly.

Example: Create a custom logo macro
   * Set MYLOGO = %PUBURL%/%WEB%/LogoTopic/mylogo.gif

You can also set preference settings in a topic by clicking the link Edit topic preference settings under More topic actions. Preferences set in this manner are known as 'meta' preferences and are not visible in the topic text, but take effect nevertheless.

Access Control Settings

These are special types of preference settings to control access to content. AccessControl explains these security settings in detail.

Local values for preferences

Certain topics (user, plugin, web, site and default preferences topics) have a problem; macros defined in those topics can have two meanings. For example, consider a user topic. A user may want to use a double-height edit box when they are editing their home topic - but only when editing their home topic. The rest of the time, they want to have a normal edit box. This separation is achieved using Local in place of Set in the macro definition. For example, if the user sets the following in their home topic:
   * Set EDITBOXHEIGHT = 10
   * Local EDITBOXHEIGHT = 20
Then, when they are editing any other topic, they will get a 10 high edit box. However, when they are editing their home topic they will get a 20 high edit box. Local can be used wherever a preference needs to take a different value depending on where the current operation is being performed.

Use this powerful feature with great care! %ALLVARIABLES% can be used to get a listing of the values of all macros in their evaluation order, so you can see macro scope if you get confused.

Related Topics

Topic revision: r22 - 14 Jan 2012 - 20:51:15 - AdminUser
 
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