From: Matthew B. <mat...@ou...> - 2006-03-23 10:37:47
|
Alistair Young wrote: > Bodders, I've been delurked, damn, to ask opinions. > > We have a requirement for My Modules, which is specific to us so we don't > want to pollute Facility. However, a template must call facility to get it > to write stuff to the screen. How about using the existing Bodington facility for doing this that is used for the Recycle building? So you: Subclass Facility - Create public class UhiFacility extends Facility .... adding the Uhi specific functionality. For the changes to the template create a new template style /tomcatadd/webapps/bodington/templates/style_1/ and copy and change any templates that need to be different for the UHI code. Edit the bodington-defaults and replace references to Facility with UhiFacility. Change the database so that the style of the root resource is 1 so that templates are first loaded from the UHI template folder (style_1). The only problem that I can see at the moment is that for Facility subclasses they still extend the standard facility so things like questionnaire facility wouldn't have the extra UHI functionality. -- -- Matthew Buckett, VLE Developer -- Learning Technologies Group, Oxford University Computing Services -- Tel: +44 (0)1865 283660 http://www.oucs.ox.ac.uk/ltg/ |