Ignore:
Timestamp:
11/10/08 13:52:10 (4 years ago)
Author:
CrawfordCurrie
Message:

Item109: outvoted on the templates terminilogy. Skin templates it is.

Location:
branches/Release04x02/data/TWiki
Files:
1 deleted
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/Release04x02/data/TWiki

  • branches/Release04x02/data/TWiki/DefaultPreferences.txt

  • branches/Release04x02/data/TWiki/InstantEnhancements.txt

    r491 r522  
    3636---+++ Set Page Background Color  
    3737 
    38 Without getting into the [[presentation templates]] system yet, you can easily edit the ==view.tmpl== (in the =templates= directory). In the HTML at the top, the body tag has the page background hardcoded to white ==bgcolor="#ffffff"==. You can change that color value to new variable. First, define a new preferences variable in the site-level [[%LOCALSITEPREFS%]], e.g. =* Set =PAGEBGCOLOR = #d0d0d0=, then edit the ==view.tmpl== template file and change ==bgcolor="#ffffff"== to ==bgcolor="%<nop>PAGEBGCOLOR%"==. If you want, you can set the page background color individually per web, simple add a =* Set =PAGEBGCOLOR = #d0d0d0= bullet to the WebPreferences to overload the site-level preferences. (Without font color control, you'll have to stick to light colors.) 
     38Without getting into the [[skin templates]] system yet, you can easily edit the ==view.tmpl== (in the =templates= directory). In the HTML at the top, the body tag has the page background hardcoded to white ==bgcolor="#ffffff"==. You can change that color value to new variable. First, define a new preferences variable in the site-level [[%LOCALSITEPREFS%]], e.g. =* Set =PAGEBGCOLOR = #d0d0d0=, then edit the ==view.tmpl== template file and change ==bgcolor="#ffffff"== to ==bgcolor="%<nop>PAGEBGCOLOR%"==. If you want, you can set the page background color individually per web, simple add a =* Set =PAGEBGCOLOR = #d0d0d0= bullet to the WebPreferences to overload the site-level preferences. (Without font color control, you'll have to stick to light colors.) 
    3939 
    4040---+++ Titles-Only Topic List - !WebTopicList 
     
    174174---++ Add Your Favorite <nop>JavaScript Features 
    175175 
    176 You're no doubt familiar or better with HTML, JS, and "webmastering". Without getting into the [[presentation templates]] system yet, you can easily edit the ==view.pattern.tmpl== (if you are using default pattern skin) (in the =templates= directory) for some dramatic effects. The top of the template is mostly regular HTML with some variables. Open up some space in the ==&lt;head&gt;== area, and you can drop in reliable <nop>JavaScripts - a pop-up window script, for example - or tag it as an external script. 
     176You're no doubt familiar or better with HTML, JS, and "webmastering". Without getting into the [[skin templates]] system yet, you can easily edit the ==view.pattern.tmpl== (if you are using default pattern skin) (in the =templates= directory) for some dramatic effects. The top of the template is mostly regular HTML with some variables. Open up some space in the ==&lt;head&gt;== area, and you can drop in reliable <nop>JavaScripts - a pop-up window script, for example - or tag it as an external script. 
    177177 
    178178   * %T% Obviously, you can do the same - place a link to an external stylesheet as well. If you set values for standard HTML tags, you can control a good deal of the type size, style and color with out adding CSS tags. __example__ 
  • branches/Release04x02/data/TWiki/MainFeatures.txt

    r496 r522  
    1515   * *Variables:* Use [[TWikiVariables][variables]] to dynamically compose your pages. This allows you for example to dynamically build a table of contents, include other pages, or show a search result embedded in a page. 
    1616   * *TWiki plugins:* Easily install program enhancements using external [[TWikiPlugins][plug-in modules]]. Developers can create plug-ins in Perl using the TWiki Plugin API. 
    17    * *Templates and skins:* A flexible [[PresentationTemplates][templating system]] separates program logic and presentation. [[Skins]] overwrite template headers and footers; page content is unaffected. 
     17   * *Templates and skins:* A flexible [[SkinTemplates][templating system]] separates program logic and presentation. [[Skins]] overwrite template headers and footers; page content is unaffected. 
    1818   * *Managing pages:* Individual pages can be renamed, moved and deleted through the browser. 
    1919   * *Managing users:* Web-based [[TWikiRegistration][user registration]] and [[ChangePassword][change of password]]. 
  • branches/Release04x02/data/TWiki/MetaData.txt

  • branches/Release04x02/data/TWiki/ShortcutMacros.txt

  • branches/Release04x02/data/TWiki/TWikiDocumentation.txt

    r519 r522  
    6363[[#PageTop][Back to top]] 
    6464------ 
    65 %INCLUDE{"PresentationTemplates"}% 
     65%INCLUDE{"SkinTemplates"}% 
    6666 
    6767[[#PageTop][Back to top]] 
  • branches/Release04x02/data/TWiki/TWikiGlossary.txt

    r496 r522  
    1515| Site: | A TWiki installation consisting of one or more _webs_. [[TWikiSite][Details...]] | 
    1616| Skin: | Skins overlay regular _templates_ with alternate header/footer layout of _pages_; topic text is not affected. Skins are typically enabled site-wide or per _web_. [[TWikiSkins][Details...]] | 
    17 | Templates: | (1) Regular templates define header/footer layout of _pages_; topic text is not affected. (2) Template topics set the default content for new _topics_. [[PresentationTemplates][Details...]] | 
     17| Templates: | (1) Regular templates define header/footer layout of _pages_; topic text is not affected. (2) Template topics set the default content for new _topics_. [[SkinTemplates][Details...]] | 
    1818| Topic: | The content of a TWiki _page_, consisting of text, an optional _form_ and optional _attachments_. It has a WikiName that's unique within its _web_. [[TopicsAndWebs][Details...]] | 
    1919| TWiki: | A web-based collaboration platform targeting the corporate world. Contraction of "TakeFive Wiki". By chance, also happens to be the name of the AI robot star of the Buck Rogers 1979 movie and TV series. Features include browser based editing, automatic linking of text (based on ideas of the original <nop>WikiWikiWeb), revision control, file _attachments_, _form_ handling, _preferences_ settings, access control and more. [[http://TWiki.org/][Details...]] | 
  • branches/Release04x02/data/TWiki/TWikiJavascripts.txt

    r486 r522  
    11---+ Javascripts 
    22 
    3 This topic contains javascript files that are included by presentation templates, and may be used by skin templates and in topics. 
     3This topic contains javascript files that are included by skin templates, and may be used by skin templates and in topics. 
    44 
    5 __Related Topics:__ PresentationTemplates, [[Skins]] 
     5__Related Topics:__ SkinTemplates, [[Skins]] 
    66 
    77        * Set ALLOWTOPICCHANGE = %USERSWEB%.AdminGroup 
  • branches/Release04x02/data/TWiki/TWikiReferenceManual.txt

    r519 r522  
    2020   1. [[FileAttachment][File Attachment]] 
    2121   1. [[TWikiForms][TWiki Forms]] 
    22    1. [[Presentation Templates]] 
     22   1. [[Skin Templates]] 
    2323   1. [[TWikiSkins][TWiki Skins (visual layout)]] 
    2424   1. [[MetaData]] 
  • branches/Release04x02/data/TWiki/TWikiSkins.txt

    r491 r522  
    99---++ Overview 
    1010 
    11 TWiki uses [[presentation templates]] as the basis of all the screens it uses to interact with users. Each screen has an associated template file that contains the basic layout of the screen. This is then filled in by the code to generate what you see in the browser. 
     11TWiki uses [[skin templates]] as the basis of all the screens it uses to interact with users. Each screen has an associated template file that contains the basic layout of the screen. This is then filled in by the code to generate what you see in the browser. 
    1212 
    1313TWiki ships with a default set of template files that give a very basic, CSS-themable, look-and-feel. TWiki also includes support for _skins_ that can be selected to give different, more sophisticated, look and feels. A default TWiki installation will usually start up with the PatternSkin already selected. Skins may also be defined by third parties and loaded into a TWiki installation to give more options. To see how TWiki looks when *no* skin is selected, [[%SCRIPTURL{"view"}%/%WEB%/%TOPIC%?skin=not_a_skin][view this topic with a non-existant skin]]. 
     
    3232You may want to define your own skin, for example to comply with corporate web guidelines, or because you have a aesthetic vision that you want to share. There are a couple of places you an start doing this. 
    3333 
    34 The [[presentation templates]] used for skins are located in the =twiki/templates= directory and are named according to the skin: ==&lt;scriptname&gt;.&lt;skin&gt;.tmpl==. Skin files may also be defined in TWiki topics - see PresentationTemplates for details. 
    35  
    36 To start creating a new skin, copy the default presentation templates (like =view.tmpl=), or copy an existing skin to use as a base for your own skin. You should only need to copy the files you intend to customise, as TWiki can be configured to fall back to another skin if a template is not defined in your skin. Name the files as described above (for example =view.myskin.tmpl=. 
     34The [[skin templates]] used for skins are located in the =twiki/templates= directory and are named according to the skin: ==&lt;scriptname&gt;.&lt;skin&gt;.tmpl==. Skin files may also be defined in TWiki topics - see SkinTemplates for details. 
     35 
     36To start creating a new skin, copy the default skin templates (like =view.tmpl=), or copy an existing skin to use as a base for your own skin. You should only need to copy the files you intend to customise, as TWiki can be configured to fall back to another skin if a template is not defined in your skin. Name the files as described above (for example =view.myskin.tmpl=. 
    3737 
    3838If you use PatternSkin as your starting point, and you want to modify the layout, colors or even the templates to suit your own needs, have a look first at the topics PatternSkinCustomization and PatternSkinCssCookbook. 
     
    182182Controlling the look and feel of attachment tables is a little bit more complex than for the rest of a skin. By default, the attachment table is a standard TWiki table, and the look is controlled in the same way as other tables. In a very few cases you may want to change the _content_ of the table as well. 
    183183 
    184 The format of standard attachment tables is defined through the use of special _TWiki template macros_ which by default, are defined in the =attachtables.tmpl= template using the =%TMPL:DEF= macro syntax described in PresentationTemplates. These macros are: 
     184The format of standard attachment tables is defined through the use of special _TWiki template macros_ which by default, are defined in the =attachtables.tmpl= template using the =%TMPL:DEF= macro syntax described in SkinTemplates. These macros are: 
    185185| *Macro* | *Description* | 
    186186| =ATTACH:files:header= | Standard title bar | 
     
    221221TWiki uses a _skin search path_, which lets you combine skins additively. The skin path is defined using a combination of TWikiVariables and URL parameters. 
    222222 
    223 TWiki works by asking for a template for a particular function - for example, 'view'. The detail of how templates are searched for is described in PresentationTemplates, but in summary, the templates directory is searched for a file called <code>view.</code><i>skin</i><code>.tmpl</code>, where _skin_ is the name of the skin e.g. =pattern=. If no template is found, then the fallback is to use =view.tmpl=. Each skin on the path is searched for in turn. For example, if you have set the skin path to =local,pattern= then =view.local.tmpl= will be searched for first, then =view.pattern.tmpl= and finally =view.tmpl=. 
     223TWiki works by asking for a template for a particular function - for example, 'view'. The detail of how templates are searched for is described in SkinTemplates, but in summary, the templates directory is searched for a file called <code>view.</code><i>skin</i><code>.tmpl</code>, where _skin_ is the name of the skin e.g. =pattern=. If no template is found, then the fallback is to use =view.tmpl=. Each skin on the path is searched for in turn. For example, if you have set the skin path to =local,pattern= then =view.local.tmpl= will be searched for first, then =view.pattern.tmpl= and finally =view.tmpl=. 
    224224 
    225225The basic skin is defined by a =SKIN= setting: 
  • branches/Release04x02/data/TWiki/UserAuthentication.txt

Note: See TracChangeset for help on using the changeset viewer.