X-Git-Url: https://git.openafs.org/?p=openafs-wiki.git;a=blobdiff_plain;f=TWiki%2FTWikiSkins.mdwn;h=cf3d6d06c1209485eed8c154e1b7e911f3ef4254;hp=94a0a8114dce2e19df24a2082956bec38d7856ae;hb=11da70533411bb92eaee8586d294b079dec70206;hpb=17c78064b8de485d20e59aa43c7cba6e995a2a0e diff --git a/TWiki/TWikiSkins.mdwn b/TWiki/TWikiSkins.mdwn index 94a0a81..cf3d6d0 100644 --- a/TWiki/TWikiSkins.mdwn +++ b/TWiki/TWikiSkins.mdwn @@ -7,6 +7,7 @@
  • The "Go" Box and Navigation Box
  • +
  • Using Cascading Style Sheets
  • Packaging and Publishing Skins
  • Activating Skins
  • @@ -67,11 +68,11 @@ You can use [[template variables|Main/TWikiTemplates#TemplateVariables]], [[TWik %WEB% - The name of the current web. Note: It is recommended to URL-encode the variable in form actions with %URLENCODE{"%WEB%"}% for proper handling in an internationalized environment + The name of the current web. Note: It is recommended to URL-encode the variable in form actions with %INTURLENCODE{"%WEB%"}% for proper handling in an internationalized environment %TOPIC% - The name of the current topic. Note: It is recommended to URL-encode the variable in form actions with %URLENCODE{"%TOPIC%"}% for proper handling in an internationalized environment + The name of the current topic. Note: It is recommended to URL-encode the variable in form actions with %INTURLENCODE{"%TOPIC%"}% for proper handling in an internationalized environment %WEBTOPICLIST% @@ -109,6 +110,10 @@ You can use [[template variables|Main/TWikiTemplates#TemplateVariables]], [[TWik %WEBCOPYRIGHT% Copyright notice, defined in the [[Main/WebPreferences]] + + %BROADCASTMESSAGE% + Broadcast message at the beginning of your view template, can be used to alert users of scheduled downtimes; is set in [[Main/TWikiPreferences]] + @@ -136,9 +141,27 @@ Here is an example form that has a select box and the "Go" box for illustration +## Using Cascading Style Sheets + +The regular templates files currently do not use style sheets. Many skin developers choose to use them, it helps in separating style from content. + +Example: To use a style sheet for the broadcast message, add this to `view.myskin.tmpl`: + + + +Then add a div tag to the `%BROADCASTMESSAGE%` variable located after the `#PageTop` anchor or after the opening form tag: + +
    %BROADCASTMESSAGE%
    + ## Packaging and Publishing Skins -See TWiki:Plugins/SkinPackagingHowTo +See TWiki:Plugins/SkinPackagingHowTo and TWiki:Plugins/SkinDeveloperFAQ ## Activating Skins