SetSkinByCookiePlugin

Lets you set the current skin by using a cookie

Introduction

By setting a cookie like SetSkin=collaborganize you can change your current displayed sking accordingly. This plugins supports diffrent modes, so you can add the skin or skins addded by the cookie to the skin-list which is present right now, or you simply overwrite all other settings and force this skin to be used in any cases.

USAGE

You can define the Cookie-Name which should be used to set the skin in the configuration center ( bin/configure ), by default this is SetSkin. If you prefix the follwing things, you can switch between the modes described in the introduction
PrefixSorted descending Meaning
no prefix Overwrite the current skin settings and force the SetSkin to be the only one
< Add the defined skin or skin list to the current skin list, but on the left side.
. This means, the SetSkin skins will be used in a higher priority
> Add the defined skin or skin list to the current skin list, but on the right side.
. This means, the SetSkin skins will be used in a lower priority

Expamples: Your current skin would be +SKIN="nat, pattern"*
  • SetSkin = "<collaborganize"
    • Result: SKIN = "collaborganize, nat, pattern"
  • SetSkin = ">collaborganize"
    • Result: SKIN = "nat, pattern, collaborganize"
  • SetSkin = "collaborganize"
    • Result: SKIN = "collaborganize"

Hint: This also overrules the parameter &skin= !

Plugin Settings

  • you need to set the CookieName in the Foswiki configure-system

Plugin Installation Instructions

  • just use the installer attached to the topic or even easier, use the configure-system/Extension to easy install it trough an user-interface

Plugin Info

Plugin Author: Foswiki:Main.MayerEugen
Copyright: © 2006, Impressive.media
License: GPL (GNU General Public License)
Plugin Version: 21 Jan 2009 (V0.2)
Change History:  
21 Jan 2009: Setting skin by prefrence now, instead of internal call
20 Jan 2009: Initial version
Foswiki Dependency:  
CPAN Dependencies: HTTP::Cookies::Find
Other Dependencies:  
Perl Version: 5.005
Add-on Home: http://foswiki.org/Extensions/SetSkinByCookiePlugin
Feedback: http://foswiki.org/Extensions/SetSkinByCookiePluginDev
Appraisal: http://foswiki.org/Extensions/SetSkinByCookiePluginAppraisal

Related Topics:

%META:FIELD{name="ModificationPolicy" attributes="" title="ModificationPolicy" value="PleaseFeelFreeToModify"}%
Topic revision: r1 - 02 Nov 2013, UnknownUser
 
This site is powered by FoswikiCopyright © CC-BY-SA by the contributing authors. All material on this collaboration platform is copyrighted under CC-BY-SA by the contributing authors unless otherwise noted.
Ideas, requests, problems regarding Foswiki? Send feedback