-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I have implemented a tiny plugin, supporting a very basic "multi skin
support".
Per default, grails only uses "main.css" but users often wish to change
the skin.
For this, "skinnable" has been developed. Now, users can switch between
predefined skins of your site/application.
The selected skin is stored in a cookie.
Actually, there is a very basic support only. The user is just able to
change the css applied to your gsp files.
But in a future release it may be possible to let the user configure
several aspects of a skin, like colors and so on. The selected values
could be injected to the underlying css file, also.
- -----
Usage:
1. grails install-plugin grails-skinnable-0.1.zip
(May be, it will be stored in official codehaus.org in future, like
documentation, too.)
2. Modify/rename/duplicate "grails-app/skins/DefaultSkin.groovy" for
your needs.
Each skin is represented by an own class "*Skin".
Default---if no skin is selected---is always "main.css".
3. Create the referred css files.
4. Replace '<link rel="stylesheet" href="/dummy/css/main.css" />' by the
new tag '<skin:css/>' in "main.gsp"---or wherever needed.
5. The controller "skin", action "select", is used for selection of the
skin by the user. (
http://.../skin/)
6. Set a link somewhere in your site/application to it.
Best regards
Marc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.orgiD8DBQFHyxLda/wwFDoCJXMRAl67AKC99vh7IqKFNGt7ATp9da6/85Zn5gCgln97
NjdRprGqJerUjqxjhYNf5I4=
=8ChL
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email