|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
New plugin: skinnable (0.1)-----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.org iD8DBQFHyxLda/wwFDoCJXMRAl67AKC99vh7IqKFNGt7ATp9da6/85Zn5gCgln97 NjdRprGqJerUjqxjhYNf5I4= =8ChL -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: New plugin: skinnable (0.1)-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Oh, step 1 should be: grails install-plugin http://www.lynorics.de/grails-skinnable-0.1.zip Best regards Marc Marc Pompl schrieb: > 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 - --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHyxW1a/wwFDoCJXMRAjRxAJ99hqMyoV4tgsZ6QxMYtw+wOLTnTwCgge1f g+QGoZwgzSrNT59yMeRiTE4= =wXcm -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: New plugin: skinnable (0.1)good work!
2008/3/3, Marc Pompl <marc.pompl@...>: -----BEGIN PGP SIGNED MESSAGE----- -- 爱生活,爱FOX |
| Free embeddable forum powered by Nabble | Forum Help |