Forum OpenACS Development: Re: New "header" class in dotlrn and site master

Collapse
Posted by Dave Bauer on
I think the include without master option is so much simpler, less error prone, not dependent on javascript, and reduces the amount of unused code and data sent to the browser.
We did a server side solution, which is modify the master template (ie. dotlrn-master), if you're inside lors for instance, the headers will be not shown (using cookies).
I think that from the 3 options mentioned so far, the one Dave proposes is the cleaner. However, is the one that takes more time to implement.

Working with javascript is our current solution, but as Daniël mentioned, sometimes it doesn't work fine on some browsers.

An finally, I prefer not to work with cookies if I can ;o)

There was another idea we *thought* some time ago, and it was to modify the master-template adding a flag to it, and somehow, if the flag was set to true, for instance, do not take the master-template from the parameter, but from another location, or simply, do not get/show the master-template at all.