You are here:
Foswiki
>
System Web
>
NatSkinPlugin
E
dit
A
ttach
Tags:
create new tag
,
view all tags
---+!! The Natural Skin Plugin %TOC% ---++ Description This is the supplemental plugin for the NatSkin. Its main purpose is to supply "skin states" to control different styles and variations to be switched dynamically while you are online. The documentation of the NatSkinPlugin only covers the additional tags that have been implemented. Have a look at the NatSkin topic for more information. ---++ Syntax ---+++ CURREV *Syntax*: =%<nop>CURREV%= returns the current topic revision see also: [[#NATMAXREV][NATMAXREV]], [[#NATREVISIONS][NATREVISIONS]] [[#PREVREV][PREVREV]], ---+++ NATFORMBUTTON *Syntax*: =%<nop>NATFORMBUTTON{";lt;format>"}%= returns a link to add or change the form attached to a topic. This will be shown on the edit screen depending on WEBFORMs being defined or not. More precisely NATFORMBUTTON returns * an empty string if there are no WEBFORMS defined * or an "Add form" link if there are but no form is attached yet * or a "Change form" link to change the current form The optional =%lt;format>= string may contain the following variables * =$url=: the url of the link * =$action=: the link text * =$1=: the complete anchor including the link and the text For example =%<nop>NATFORMBUTTON{"| $1"}%= will generate a pipe and the formbutton if possible. ---+++ KNOWNSTYLES *Syntax*: =%<nop>KNOWNSTYLES%= returns a list of all known skin styles. ---+++ KNOWNVARIATIONS *Syntax*: =%<nop>KNOWNVARIATIONS%= returns a list of all known styles variations. ---+++ NATFORMLIST *Syntax*: =%<nop>NATFORMLIST{...}%= returns a formatted list of forms that can be attached to a topic. typically used in the =changeform= skin template. paramters: * =header= * =format= * =footer= * =separator= * =selected= * =web= * =topic= ---+++ NATMAXREV *Syntax*: =%<nop>NATMAXREV%= substitute for =%<nop>MAXREV%= which differes all too much on Beijing, Cairo and Dakar. This version grants to behave the same. ---+++ NATREVISIONS *Syntax*: =%<nop>NATREVISIONS%= substitute for the =%<nop>REVISIONS%= tag which only works on the <nop>PatternSkin. ---+++ NATWEBLOGO *Syntax*: =%<nop>NATWEBLOGO{format="..."}%= returns either a textual or a graphical a logo to be used in the header bar depending on a set of preference variables. NATWEBLOGO will check for a couple of preference variables in the following order: 1 return =%<nop>NATSKIN_LOGO%= if defined 1 return =%<nop>WIKILOGOIMG%= if defined 1 return =%<nop>WEBLOGOIMG%= if defined 1 return =%<nop>WIKITOOLNAME%= if defined 1 or return the string 'Foswiki' otherwise If you want to have a different logo using NatSkin than using another skin on the same site then add the following to the %USERSWEB%.SitePreferences: <verbatim class="tml"> * Set NATSKIN_LOGO = /path/to/your/natskinlogo.gif * Set WIKILOGOIMG = /path/to/your/defaultlogo.gif </verbatim> ---+++ PREVREV *Syntax*: =%<nop>PREVREV%= returns the previous topic revision taking =NumberOfRevisions= into account ---+++ USERACTIONS *Syntax*: =%<nop>USERACTIONS{"<format>" ...}%= display separate sets of actions for anonymous or authenticated users. * sep="<span> class="natSep">|</span>": separator between actions * guest="$login$sep$register$sep$print": format string of actions for guests * format="$user$sep$logout$sep$print<br />$edit$sep$attach$sep$move$sep$raw$sep$diff$sep$more": format string of actions for authenticated users * restrictedactions="...": list of user actions that are disabled if the user has got no write access to the current topic * help="...": help topic used for =$help=, defaults to %SYSTEMWEB%.UsersGuide (see below) The "guest" and "format" format strings can use the following variables * $attach: link to "attach" topic action * $diff: link to diff * $edit: link to edit * $help: link to a help page * $login: link to log in * $logout: link to log out * $more: link to more dialog * $move: link to move dialog * $pdf: link to export pdf using the <nop>GenPDFAddOn * $print: link to print action * $raw: link to display topic in raw format * $register: link to registration * $sep: separator string * $user: name of current authenticated user ---+++ WEBCOMPONENT *Syntax*: =%<nop>WEBCOMPONENT{"name" web="<name>" lineprefix="<prefix>" multiple="<anything>"}%= *Arguments*: * =name=: The name of the !WebComponent topic. * =web="<name>"=: The web to fetch the component from. Default to the current web. * =lineprefix="<prefix>"=: A prefix to be added to each line of the web component topic before inclusion. Typically three space characters. * =multiple= : If defined WEBCOMPONENT will allow for multiple inclusions of the same web component topic. display a web component. A web component "<nop>MyComponent" is searched looking for 1 <nop>WebMyComponent in the current web, 2 <nop>SiteMyComponent in the %USERSWEB% web, 3 <nop>SiteMyComponent in the %SYSTEMWEB% web and 4 <nop>WebMyComponent in the %SYSTEMWEB% web. The WEBCOMPONENT tag will retrieve the component where it was found first. Thereby the component can be customize for each web separately if required. If it is not defined locally a predefined component will be returned. Components can be predefined in the %USERSWEB% and the %SYSTEMWEB% where the name of the component is prefix with "Site" to distinguish them from the local web components that may already be present in the %USERSWEB% and the %SYSTEMWEB%. As a last resort the local components of the %SYSTEMWEB% are used. By default the NatSkin comes with predefined components * [[%SYSTEMWEB%.SiteBottomBar]]: page bottom * [[%SYSTEMWEB%.SiteButtons]]: horizontal navigation * [[%SYSTEMWEB%.SiteLinks]]: link section inside sidebar component * [[%SYSTEMWEB%.SiteSideBar]]: sidebar navigation * [[%SYSTEMWEB%.SiteRightBar]]: right sidebar navigation, used in three columns layout (stylesidebar = both) * [[%SYSTEMWEB%.SiteTopicActions]]: topic actions * [[%SYSTEMWEB%.SiteHtmlHead]] see also: [[#MYSIDEBAR][MYSIDEBAR]] ---++ Installation Instructions See NatSkin#Installation_Instructions ---++ Dependencies <table class="foswikiTable" border="1"><tr><th>Name</th><th>Version</th><th>Description</th></tr><tr><td align="left">Foswiki::Contrib::FamFamFamContrib</td><td align="left">>=2075</td><td align="left">Required.</td></tr><tr><td align="left">Foswiki::Plugins::AutoTemplatePlugin</td><td align="left">>=1.11</td><td align="left">Required</td></tr><tr><td align="left">Foswiki::Plugins::BreadCrumbsPlugin</td><td align="left">>=4318</td><td align="left">Required</td></tr><tr><td align="left">Foswiki::Plugins::DBCachePlugin</td><td align="left">>=1</td><td align="left">Optional</td></tr><tr><td align="left">Foswiki::Plugins::FilterPlugin</td><td align="left">>=3491</td><td align="left">Required</td></tr><tr><td align="left">Foswiki::Plugins::FlexWebListPlugin</td><td align="left">>=3493</td><td align="left">Required</td></tr><tr><td align="left">Foswiki::Plugins::ImagePlugin</td><td align="left">>=6307</td><td align="left">Optional</td></tr><tr><td align="left">Foswiki::Plugins::JQueryPlugin</td><td align="left">>=3740</td><td align="left">Required</td></tr><tr><td align="left">Foswiki::Plugins::NatEditPlugin</td><td align="left">>=1993</td><td align="left">Required</td></tr><tr><td align="left">Foswiki::Plugins::RenderPlugin</td><td align="left">>=3644</td><td align="left">Required</td></tr><tr><td align="left">Foswiki::Plugins::TopicInteractionPlugin</td><td align="left">>=1340</td><td align="left">Required</td></tr><tr><td align="left">Foswiki::Plugins::WebLinkPlugin</td><td align="left">>=1</td><td align="left">Optional</td></tr><tr><td align="left">Foswiki::Plugins::ZonePlugin</td><td align="left">>=3.1</td><td align="left">Required. required for Foswiki < 1.1</td></tr></table> ---++ Plugin Info <!-- provided for compatibility only * Set SHORTDESCRIPTION = Theming engine for NatSkin --> | Plugin Author: | Michael Daum | | Copyright ©: | 2003-2013, Michael Daum http://michaeldaumconsulting.com | | License: | GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]]) | | Release: | 3.99_007 | | Version: | 3.99_007 | | Change History: | <!-- versions below in reverse order --> | | 28 Mar 2013: | second beta | | 14 Mar 2013: | first beta of new release | | 16 Mar 2005: | Initial version | | Home: | Foswiki:Extensions/NatSkinPlugin | | Support: | Foswiki:Support/NatSkinPlugin |
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r4 - 19 Nov 2013,
AdminUser
System
Log In
or
Register
Toolbox
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
User Reference
BeginnersStartHere
TextFormattingRules
Macros
FormattedSearch
QuerySearch
DocumentGraphics
SkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
AdminToolsCategory
InterWikis
ManagingWebs
SiteTools
DefaultPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Webs
Applications
ClassificationApp
Extensions
Main
System
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki?
Send feedback