r41 - 19 Oct 2010 - 20:19 - FlorensSchwarzwaelder | r40 - 16 Oct 2010 - 23:13 - FlorensSchwarzwaelder | ||||
---|---|---|---|---|---|
Main Web Preferences |
Main Web Preferences |
||||
Appearance |
Appearance |
||||
|
|
||||
Wiki application settings |
Wiki application settings |
||||
|
|
||||
Access control |
Access control |
||||
Users or groups who are allowed to view, change and rename topics in the Main web. Remember that an empty setting is a valid setting; setting DENYWEBVIEW to nothing means that anyone can view the web. If you intend to lock down the Main to only allow registration, you need to add the built in |
Users or groups who are allowed to view, change and rename topics in the Main web. Remember that an empty setting is a valid setting; setting DENYWEBVIEW to nothing means that anyone can view the web. If you intend to lock down the Main to only allow registration, you need to add the built in |
||||
|
|
||||
Users or groups allowed to change or rename this WebPreferences topic: (e.g., AdminGroup) |
Users or groups allowed to change or rename this WebPreferences topic: (e.g., AdminGroup) |
||||
|
|
||||
Tools |
Tools |
||||
Help on Preferences
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 = valueSpaces 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. 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. Access Control SettingsThese are special types of preference settings to control access to content. AccessControl explains these security settings in detail.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
|
Help on Preferences
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 = valueSpaces 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. 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. Access Control SettingsThese are special types of preference settings to control access to content. AccessControl explains these security settings in detail.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
|
||||
r41 - 19 Oct 2010 - 20:19 - FlorensSchwarzwaelder | r40 - 16 Oct 2010 - 23:13 - FlorensSchwarzwaelder | ||||