| Previous · Next | |
| User | Message |
|
lrobinson
|
Date: 1/20/2010 8:13 am · Subject: Style template for operation · Rating: 0
I want to override the style used to display the output of a particular operation. I noticed that WebGUI::Session::Style allows for overriding the style on a per-user basis (by setting the session scratch variable personalStyleId), but I don't think it allows it on a per-operation basis. For now I have hacked WebGUI::Session::Style::userStyle() to accept a third parameter $templateId. Is this the way to go? Thanks Luke
|
| Back to Top |
Rate [ | ]
|
|
bartjol
|
Date: 1/21/2010 4:51 am · Subject: Re: Style template for operation · Rating: 0
well, the method itself isn;t that bad, but will cause problems during upgrades. If you use altered files in the WebGUI lib, you might wanna make a copy in a custom directory, otherwise it will break during your first upgrade. Problem might be that there are 2 files, so check whether the preload.custom libs are chosen over the lib dir of WebGUI itself. And check during upgrades wheteher there aren't any bugfixes for that module. But apart from that, it seems to me that it hacking a personal template might very well work that way (but caching might give some problems, not sure) |
| Back to Top |
Rate [ | ]
|
|
lrobinson
|
Date: 1/21/2010 5:02 am · Subject: Re: Style template for operation · Rating: 0
Thanks Bart. I already have a number of personal hacks in a /data/Custom/ directory. As you suggest, that involves a little bit of care at upgrade time. |
| Back to Top |
Rate [ | ]
|