<<O>> Difference Topic WebPreferences (16 - 15 Nov 2008 - Main.PetrMalat) |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Projects Web Preferences | ||||||||
Line: 29 to 29 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
|
<<O>> Difference Topic WebPreferences (15 - 27 Oct 2008 - Main.AdminUser) |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Projects Web Preferences | ||||||||
Line: 17 to 17 | ||||||||
#D0D0D0
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 29 to 29 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 57 to 57 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
|
<<O>> Difference Topic WebPreferences (14 - 01 Mar 2007 - TWikiContributor) |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Projects Web Preferences | ||||||||
Changed: | ||||||||
< < | The following settings are web preferences of the Projects web. These preferences overwrite the site-level preferences in %TWIKIWEB%.DefaultPreferences and Main.SitePreferences, and can be overwritten by user preferences (your personal topic, eg: WikiGuest in the Main web). | |||||||
> > | The following settings are web preferences of the Projects web. These preferences overwrite the site-level preferences in System.DefaultPreferences and Main.SitePreferences, and can be overwritten by user preferences (your personal topic, eg: WikiGuest in the Main web). | |||||||
Web Preferences Settings | ||||||||
Changed: | ||||||||
< < | These settings override the defaults for this web only. See full list of defaults with explanation. Many of the settings below are commented out. Remove the # sign to enable a local customisation. | |||||||
> > | These settings override the defaults for this web only. See full list of defaults with explanation. Many of the settings below are commented out. Remove the # sign to enable a local customisation. | |||||||
| ||||||||
Line: 16 to 16 | ||||||||
#D0D0D0
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < | Note: Don't add your own local logos to the %TWIKIWEB%.TWikiLogos topic; create your own logos topic instead. | |||||||
> > | Note: Don't add your own local logos to the TWikiLogos topic; create your own logos topic instead. | |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 37 to 37 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 56 to 56 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < | Warning: Can't find topic .WebPreferencesHelp | |||||||
> > |
ToolsPreference SettingsA preference setting lets you define a simple macro that will be expanded in your output. A preference setting looks like this:[multiple of 3 spaces] * [space] Set [space] MACRONAME [space] = [space] value Example:
* Set WEBBGCOLOR = #FFFFC0Macros defined using preference settings are expanded by enclosing their name in percent signs. So when you write %WEBBGCOLOR% , it gets expanded to #D0D0D0
A preference macro 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:
Set statements which occur at numerically higher locations override macros of the same name defined 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.
![]() ![]() * #Set DENYWEBCHANGE = %USERSWEB%.UnknownUser ![]() <!-- * Set HIDDEN = This will be invisible in the output -->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 setting anywhere in the topic, even if you set it at the very 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.
And especially important, preference settings are never overridden or set in "%INCLUDE{" topics. in the below example about weather conditions, note the difference in the CONDITIONS expansion
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 hereWhatever you include in your macro will be expanded on display, exactly as if it had been entered directly (though see Parameters, below). Example: Create a custom logo macro
* Set MYLOGO = %PUBURL%/%WEB%/LogoTopic/mylogo.gifYou 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.
Parameters<--
* Set CONDITIONS = According to [[System.%BASETOPIC%][%BASETOPIC%]] the %WHAT% is %STATE% today (Set in ...).You can call this macro passing in values for WHAT and STATE . For example:
Parameter defaults
* Set WEATHER = It's %DEFAULT{default="raining"}%.
![]() Access Control SettingsThese are special types of preference settings to control access to content. AccessControl explains these security settings in detail. Parameters are not available in access control settings.Local values for preferencesCertain 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 usingLocal 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 = 20Then, 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
| |||||||
|
<<O>> Difference Topic WebPreferences (13 - 01 Mar 2007 - TWikiContributor) |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Projects Web Preferences | ||||||||
Line: 49 to 49 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
|
<<O>> Difference Topic WebPreferences (12 - 28 Mar 2005 - TWikiContributor) |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Projects Web Preferences | ||||||||
Changed: | ||||||||
< < | The following settings are web preferences of the Projects web. These preferences overwrite the site-level preferences in %TWIKIWEB%.DefaultPreferences and Main.SitePreferences, and can be overwritten by user preferences (your personal topic, eg: TWikiGuest in the Main web). | |||||||
> > | The following settings are web preferences of the Projects web. These preferences overwrite the site-level preferences in %TWIKIWEB%.DefaultPreferences and Main.SitePreferences, and can be overwritten by user preferences (your personal topic, eg: WikiGuest in the Main web). | |||||||
<<O>> Difference Topic WebPreferences (11 - 28 Mar 2005 - TWikiContributor) |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Projects Web Preferences |
<<O>> Difference Topic WebPreferences (10 - 28 Mar 2005 - TWikiContributor) |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Changed: | ||||||||
< < |
Projects Web Preferences | |||||||
> > |
Projects Web Preferences | |||||||
Changed: | ||||||||
< < | The following settings are web preferences of the Projects web. These preferences overwrite the site-level preferences in %TWIKIWEB%.DefaultPreferences, and can be overwritten by user preferences (your personal topic, eg: TWikiGuest in the Main web). | |||||||
> > | The following settings are web preferences of the Projects web. These preferences overwrite the site-level preferences in %TWIKIWEB%.DefaultPreferences and Main.SitePreferences, and can be overwritten by user preferences (your personal topic, eg: TWikiGuest in the Main web). | |||||||
Added: | ||||||||
> > | ||||||||
Changed: | ||||||||
< < | Preferences: | |||||||
> > |
Web Preferences Settings | |||||||
Changed: | ||||||||
< < | ||||||||
> > | These settings override the defaults for this web only. See full list of defaults with explanation. Many of the settings below are commented out. Remove the # sign to enable a local customisation. | |||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Changed: | ||||||||
< < |
| |||||||
> > |
#D0D0D0
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
Notes:
| |||||||
> > | Warning: Can't find topic .WebPreferencesHelp | |||||||
Added: | ||||||||
> > |
|
<<O>> Difference Topic WebPreferences (9 - 16 Aug 2004 - PeterThoeny) |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Projects Web Preferences | ||||||||
Changed: | ||||||||
< < | The following settings are web preferences of the Projects 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 Petr Malát.Main web) | |||||||
> > | The following settings are web preferences of the Projects web. These preferences overwrite the site-level preferences in %TWIKIWEB%.DefaultPreferences, and can be overwritten by user preferences (your personal topic, eg: TWikiGuest in the Main web). | |||||||
Preferences: | ||||||||
Line: 22 to 22 | ||||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
|
<<O>> Difference Topic WebPreferences (8 - 15 Aug 2004 - ArthurClemens) |
<<O>> Difference Topic WebPreferences (7 - 26 Dec 2003 - PeterThoeny) |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Projects Web Preferences | ||||||||
Line: 41 to 41 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Notes:
|
<<O>> Difference Topic WebPreferences (6 - 20 Dec 2003 - PeterThoeny) |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Projects Web Preferences | ||||||||
Line: 38 to 38 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
|
<<O>> Difference Topic WebPreferences (5 - 16 Dec 2003 - PeterThoeny) |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Projects Web Preferences | ||||||||
Line: 41 to 41 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Notes:
|
<<O>> Difference Topic WebPreferences (4 - 22 Mar 2003 - PeterThoeny) |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Changed: | ||||||||
< < |
Petr Malát.Projects Web Preferences | |||||||
> > |
Projects Web Preferences | |||||||
Changed: | ||||||||
< < | The following settings are web preferences of the Petr Malát.Projects 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 Petr Malát.Main web) | |||||||
> > | The following settings are web preferences of the Projects 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 Petr Malát.Main web) | |||||||
Preferences: | ||||||||
Line: 14 to 14 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 28 to 28 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
|
<<O>> Difference Topic WebPreferences (3 - 19 Jan 2003 - PeterThoeny) |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Petr Malát.Projects Web Preferences | ||||||||
Line: 8 to 8 | ||||||||
Preferences:
| ||||||||
Changed: | ||||||||
< < | ||||||||
> > | ||||||||
|
<<O>> Difference Topic WebPreferences (2 - 12 Apr 2002 - PeterThoeny) |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Petr Malát.Projects Web Preferences | ||||||||
Line: 13 to 13 | ||||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
|