Also, it would be cool to be able to switch templates on the fly by switching the webwork.ui.theme property. I guess this would require a reload call to the Configuration from the theme action, but that shouldn't be to hard to implement, I guess. If you know any other good looking themes that could be appropriate, I'd be happy to help out with the port. :)
Just another small thing - to make the theming "look" more transparent, it would be a good idea to have page-start and page-end macros / templates as well. This will make it easier to change the entire look of the app. I've put #macro(pageStart $title) #parse ("page-start.vm") ...#end in the global macros so page-start.vm can setup the css styling etc. For the default distribution this template can just be something like:
<html> <head><title>$pageTitle</head></title> <body>
Cheers,
Dag
Patrick Lightbody wrote:
We could include this with the webwork 2.0 final release as a demo of how to do your own themes. Please open a jira issue with this info if you'd like to do that.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dag Liodden Sent: Thursday, October 23, 2003 12:48 PM To: [EMAIL PROTECTED] Subject: [OS-webwork] Webwork Tigris Style Sample (Was: UITags inflexible)
Hi,
I've styled the velocity templates to do styling for the Tigris Style project (http://style.tigris.org) which is a great, themeable style framework using CSS. On http://www.liodden.no/webwork, you'll find an ready-to-run war as well as an Eclipse project with the necessary sources and templates. It uses Velocity for most things, but JSP for the
SiteMesh stuff since I haven't had time to migrate the SiteMesh tag usage to Velocity yet (I guess this is possible after the refactoring).
I haven't really tested everything thoroughly after the refactorings, but most things seem to work for me - hope it does for you too. :) The main point is to show how easy it is to theme pages generated by WebWork
/ Velocity.
Some sort of theme gallery would be great, BTW. Shouldnt' be too hard. :)
Cheers,
Dag
Matt Ho wrote:
Dag Liodden wrote:
Yup, and it's easy too! :) I ported the standard templates to support
the tigris style-project (http://style.tigris.org/) in an hour or so.
Works perfectly (well, worked before the latest refactorings) and looks good.
I suppose this would be interesting to some of you, so if you want to, I'll put them on the wiki. Just need to port them to the new velocity-implementation (I'm having some trouble with error display, but I'll probably get it fixed sometime tomorrow). A template gallery
$100would perhaps also be nice - if the velocity context are remains as it is now for a while? Patrick, are they? :)The contents of the VelocityContext are stable :)
M
-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
------------------------------------------------------- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
------------------------------------------------------- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork