Difference: NatSkinPlugin (1 vs. 4)

Revision 4
19 Nov 2013 - Main.AdminUser
Line: 1 to 1
Deleted:
<
<
<--

PLEASE DO NOT EDIT THIS TOPIC

It is automatically generated from the subversion repository, and any changes you make will simply be overwritten the next time a release is generated.

Instead, you could check your fix in, raise a bug in the Bugs web, or mail the author(s). -->
 

The Natural Skin Plugin

On this page:

Description

Deleted:
<
<
Powered by
WikiRing Consultants
  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.
Line: 39 to 22
  NATREVISIONS PREVREV,
Changed:
<
<

FORMBUTTON

Syntax: %FORMBUTTON{";lt;format>"}%
>
>

NATFORMBUTTON

Syntax: %NATFORMBUTTON{";lt;format>"}%
 
Changed:
<
<
returns a link on to add or change the form attached to a topic. This
>
>
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.
Changed:
<
<
More precisely FORMBUTTON returns
>
>
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
Line: 54 to 37
 
  • $action: the link text
  • $1: the complete anchor including the link and the text
Changed:
<
<
For example %FORMBUTTON{"| $1"}% will generate a pipe and the formbutton if possible. See the edit.nat.tmpl template file of the NatSkin.
>
>
For example %NATFORMBUTTON{"| $1"}% will generate a pipe and the formbutton if possible.
 

KNOWNSTYLES

Syntax: %KNOWNSTYLES%
Line: 100 to 83
  depending on a set of preference variables.

NATWEBLOGO will check for a couple of preference variables in the following order:
Changed:
<
<
  1. return %NATWEBLOGONAME% if defined
  2. return %NATWEBLOGOIMG% if defined
>
>
  1. return %NATSKIN_LOGO% if defined
  2. return %WIKILOGOIMG% if defined
 
  1. return %WEBLOGOIMG% if defined
  2. return %WIKITOOLNAME% if defined
  3. or return the string 'Foswiki' otherwise
Deleted:
<
<
Given you want to have the string Foswiki in the logo position when using NatSkin but not so when using a different skin on the same site. Then add the following to the SitePreferences:
  * Set NATWEBLOGONAME = %WIKITOOLNAME%
  * Set WEBLOGOIMG = /path/to/your/defaultlogo.gif
  If you want to have a different logo using NatSkin than using another skin on the same site then add the following to the SitePreferences:
Changed:
<
<
  * Set NATWEBLOGOIMG = /path/to/your/natskinlogo.gif
  * Set WEBLOGOIMG = /path/to/your/defaultlogo.gif
>
>

  * Set NATSKIN_LOGO = /path/to/your/natskinlogo.gif
  * Set WIKILOGOIMG = /path/to/your/defaultlogo.gif
 

PREVREV

Line: 185 to 160
 
Changed:
<
<
>
>
 

see also: MYSIDEBAR
Deleted:
<
<

WEBLINK

Syntax: %WEBLINK{web="..." name="..."}%

display a link to a web with the its name and add the SITEMAPUSEDTO description to to the hover balloon. The web name is stripped down to its distinguishing tail, removing all parent web names.

Arguments:
  • web: name of the web to link to
  • name: name to display instead of the web name
  • format: format string for the web link
  • marker: string to be added to inserted into the format string if the web link points to the current web

The following variables can be used in the format string:
  • $web: full qualified name of the web, defaults to current web
  • $topic: name of the topic to link to, defaults to WebHome
  • $name: name of the web, all prefixes but its basename being stripped off
  • $url: url for the link
  • $marker: the marker set to the "marker" string if the link points to the current web
  • $tooltip: tooltip for the link, mostly used in a title argument of an anchor
 

Installation Instructions

See NatSkin

Dependencies

Changed:
<
<
NameVersionDescription
Foswiki::Contrib::FamFamFamContrib>=2075Required.
Foswiki::Plugins::BreadCrumbsPlugin>=4318Required
Foswiki::Plugins::FilterPlugin>=3491Required
Foswiki::Plugins::FlexWebListPlugin>=3493Required
Foswiki::Plugins::IfDefinedPlugin>=3637Required
Foswiki::Plugins::SetVariablePlugin>=4287Required
Foswiki::Plugins::UploadPlugin>=1340Required
Foswiki::Plugins::NatEditPlugin>=1993Required
Foswiki::Plugins::JQueryPlugin>=3740Required
Foswiki::Plugins::ZonePlugin>=1.0Required
>
>
NameVersionDescription
Foswiki::Contrib::FamFamFamContrib>=2075Required.
Foswiki::Plugins::AutoTemplatePlugin>=1.11Required
Foswiki::Plugins::BreadCrumbsPlugin>=4318Required
Foswiki::Plugins::DBCachePlugin>=1Optional
Foswiki::Plugins::FilterPlugin>=3491Required
Foswiki::Plugins::FlexWebListPlugin>=3493Required
Foswiki::Plugins::ImagePlugin>=6307Optional
Foswiki::Plugins::JQueryPlugin>=3740Required
Foswiki::Plugins::NatEditPlugin>=1993Required
Foswiki::Plugins::RenderPlugin>=3644Required
Foswiki::Plugins::TopicInteractionPlugin>=1340Required
Foswiki::Plugins::WebLinkPlugin>=1Optional
Foswiki::Plugins::ZonePlugin>=3.1Required. required for Foswiki < 1.1
 

Plugin Info

<-- provided for compatibility only 
  • Set SHORTDESCRIPTION = Theming engine for NatSkin
-->
Plugin Author: Michael Daum
Changed:
<
<
Copyright ©: 2003-2010, Michael Daum http://michaeldaumconsulting.com
>
>
Copyright ©: 2003-2013, Michael Daum http://michaeldaumconsulting.com
 
License: GPL (GNU General Public License)
Changed:
<
<
Release: 3.96
Version: 6287 (2010-02-12)
>
>
Release: 3.99_007
Version: 3.99_007
 
Change History:
<-- versions below in reverse order -->
 
Changed:
<
<
12 Feb 2010: allow printing of pages with url params; using Foswiki:Extensions/ZonePlugin for improved page load time
24 Nov 2009: improve SubscribePlugin support
17 Nov 2009: added support for SolrPlugin; fixed email obfuscator; switching sidebar-context off if sidebar tempalte is empty (works only for view)
14 Sep 2009: removed GETSKINSTYLE in favour of using ADDTOHEAD; ajusted css to latest TablePlugin; using relative urls where possible
20 Aug 2009: added support to switch javascript parmeters via templating; using relative urls as much as possible; be more robust when selecting unknown themes; support for SubscribePlugin; adding style variation identifier to skin path as well; made natsearch pluggable to use wiki apps for searching
15 Jan 2009: more IE6 fixes; fixed natsearch on foswiki; simplified jump+search behavior to be more search-engine-like
07 Jan 2009: added workaround to trick in NatSkin css into TinyMCE; several workarounds to be a hybrid skin for twiki&foswiki; added "show on screen" topic settings to ease hiding form, attachments and meta:comments; removed topicactions from style engine now that they are show-on-screen settings; added tape-recorder-like navigation to USERACTIONS to browse around revisions; support for CompareRevisionsAddOn; removed twiki/dakar support from natsearch; removed old natlogon feature from old beijing days
12 Nov 2008: fixed use of uninitialised variable
11 Nov 2008: added topic actions to edit form and text data
05 Nov 2008: added NATWEBLOGOURL; natsearch can now use kinosearch, plucene, or its own native search engine
03 Jul 2008: removed unused NATLOGINURL, NATLOGOUTURL, NATDIFFURL; removed auto-disabling the plugin on non-nat skins; fixed patching the skinpath not to include the cover; added support for the GenPDFAddOn; added restrictedactions parameter to USERACTIONS to disable specific user actions if he/she has no write access to the current topic; fixed issue in WEBCOMPONENTS that could be used to reveil read-protected topics (reported by Martin Dahlö); implemented a google-like display of hit results in (nat)search; sorting natsearch results accross all webs - not per web
13 Nov 2007: propagating skin state to context to speed up template resolution, prepending style identifier to SKIN variable to be able to switch the markup together with the css, added NATFORMLIST, a more flexible variantion of the standard FORMLIST
02 Oct 2007: added support for HistoryPlugin, TinyMCEPlugin
21 Sep 2007: made external link detection optional, fixed mod_perl/speedy issue detecting new themes on the stylepath, recoded natsearch to be a lot simpler
06 Mar 2007: improved USERACTIONS tag for more flexibility; added NATSEARCHGLOBAL and NATSEARCHCONTENT flags for NatSearch
05 Feb 2007: new option NATSEARCHIGNORECASE;
13 Oct 2006: prevent recursive expansion of WEBCOMPONENTs; fixed natsearch not to print to STDOUT but use standard apis
02 Oct 2006: respect access rights in WEBCOMPONENTs; prevent deep recursion in WEBCOMPONENTs
18 Sep 2006: fixed natlogon to run on current TMwiki4.1-svn
31 Aug 2006: don't call getSkin during initPlugin - you may switch off albeit you are needed
29 Aug 2006: cleaned up and removed all spaghetti code distinguishing beijing, cairo and dakar; removed lots of code that got useless now, i.e. NATSCRIPTURL
25 Aug 2006: first release that drops beijing and cairo support; fixed and cleaned up initialisation sequence to detect commandline context properly; removed unused IFACCESS tag; minor rewrite of the email obfuscator; fixed natsearch to properly support web.topic jumps; moved part of the documentation to NatSkin
21 Aug 2006: removed TablePlugin hack loading plugin preferences into the session store; instead provide proper css for twikiTables to match the current style now; this needs TablePlugin from TMwiki > 4.0.4; alternatively use the attached patch to it; multiple fixes to email obfuscator; simplified support for localization ; fixed unexpanded MAKETEXT in natsearch
15 Aug 2006: suport for userinterface internationalization
04 Aug 2006: fixed detection of the cgi action to be more robust on different apache configurations (rewrites, aliases); implemented NATWEBLOGO to circumvent different ways of using WEBLOGO, WIKITOOLNAME; added a wrapper for natsearch and natlogon to be called using dakar's Foswiki::UI:run() mechanism; reintroduced the dependency on the FilterPlugin which is still used in one place; load email obfuscator javascript only when needed
28 Jul 2006: This version drops the dependency on the FilterPlugin and adds three new dependencies (1) FlexWebListPlugin, (2) BreadCrumbsPlugin and (3) GluePlugin;
added use strict; and fixed some minor bugs showing up then; removed NATLOGON, NATLOGOUT tags and replaced it with NATLOGINURL, NATLOGOUTURL for more flexibility; fixed check of USEWYSIWYG preference variable
15 Jun 2006: remove double target attribute from external urls
26 May 2006: fixed error fetching the number of the last revision
24 May 2006: fixed detection of style files to prevent 403 errors; added SETSKINSTATE; added more accesskeys to topic actions; added "nop" class to prevent external link detection
05 May 2006: fixed table bgcolor for Independence style; display default WebLinks for non-public webs
19 Apr 2006: use <link rel="stylesheet" ... /> instead of @import url() to ease the pain for js wysiwyg editors
11 Apr 2006: added STYLEPATH feature; added style=off feature to emulate non-css browser; disable email obfuscation javascript if unused
05 Apr 2006: added support for dakar's TemplateLogin; changed semantics of NATLOGON, added NATLOGOUT; fixed some grave bugs exposed by the PublishContrib
27 Mar 2006: moved MySideBar tempaltes to NatSkin; added docu for HTTPSLOGON
20 Mar 2006: multiple errors in natsearch: always first look into the current web, even for a global search; default to local search, was global before, use g: to switch to global search explicitely; GO function searches in all webs; display number of hits; sort hit results in reverse chronological order
13 Mar 2006: dont remove leading and trailing whitespaces from web components
11 Mar 2006: removed MYSIDEBAR tag; new web component search path; new sidebar construction logic using WebLinks; docu restructuring; packaging using BuildContrib
22 Feb 2006: removed GROUPSUMMARY, ALLUSERS and registrationHandle which where only used on the NatsWiki installation, moved into a plugin of its own; fixed initPlugin not to return 0, disable the plugin if not used with the NatSkin on a per handler base
21 Feb 2006: externalized the IFDEFINED family into a plugin of its own and added a new dependency for it
15 Feb 2006: properly detect scripted mode on Dakar
14 Feb 2006: moved FORMATLIST to Foswiki:Extensions/FilterPlugin; added dependency on it; fixed uninitialized variables with perl-5.8.8; added escape chars to IFDEFINED; don't switch off using an atom skin
03 Feb 2006: added escape chars (percnt, dollar) to IFACCESS to make it more useful; fixed detection of a Dakar engine; fixed default REDDOT in the MySideBarTemplate
26 Jan 2006: docu fixes
23 Jan 2006: fixed natlogn; fixed FORMATLIST to expandCommonVariables of the format result
09 Jan 2006: removed local sandbox; added dependency on DakarContrib; added variable expansion to IFDEFINED; added cleanup code if the AliasPlugin is not installed; improved natsearch customization; w3c fixes in the MySideBarTemplate
06 Dec 2005: switching off the plugin if the skin is not NatSkin
05 Dec 2005: skin state variables respect FINALPREFERENCES settings; added WEBCOMPONENT
01 Dec 2005: added tooltips to topic actions
29 Nov 2005: fixed warning about using the deprecated endRenderingHandler on Dakar
23 Nov 2005: added $nop to IFSKINSTATETHEN content
22 Nov 2005: added support for the WysiwygPlugin; added custom templates for the BlackListPlugin's error messages
10 Nov 2005: added switchvariation urlparam; work arround bug in Dakar (nested calls to getRenderedVersion()); fixed duplicate target/class in external links; improved MySideBarTemplate using Twisties
09 Nov 2005: fixed wrong call to expandCommonVariables() ... doh
08 Nov 2005: fixed use of uninitialized variables; https links to the same site are not external once
02 Nov 2005: added OBFUSCATEEMAILS flag to switch off this feature
28 Oct 2005: add searchbox and style variations to the skin state; configuring header art is now done using style variations; fixed the NatSkinStyleBrowser to only "stick" to changes; extended IFSKINSTATE to cover the new skin state variables
25 Oct 2005: customization of natsearch by WebPreferences
20 Oct 2005: improved external link detection
10 Oct 2005: added switchstyle feature to cycle thru all installed skin styles
09 Oct 2005: rewrite of skin state: support switching border, sidebar, webbuttons and style independently; rewrite of the email obfuscator; improved skin style browser
27 Sep 2005: added conditional content tags IFSKINSTATE and IFDEFINED; added web button support
30 Aug 2005: added external link detection; fixed IFSKINSTYLE; added style support for the Foswiki:Extensions/TablePlugin
26 Aug 2005: new NatSkin-2.0 release
28 Apr 2005: pre-release to fix installation on TMwiki/Cairo
>
>
28 Mar 2013: second beta
14 Mar 2013: first beta of new release
 
16 Mar 2005: Initial version
Deleted:
<
<
Perl Version: >=5.6
 
Home: Foswiki:Extensions/NatSkinPlugin
Support: Foswiki:Support/NatSkinPlugin
Revision 3
12 Oct 2010 - Main.AdminUser
Line: 1 to 1