MJ Ray wrote:
paul POULAIN <paul.poulain@free.fr> wrote:
Look at : http://html-template.sourceforge.net/html_template.html#tutorial for a tutorial and some explanations.
I suspect some judicious use of TMPL_IF and TMPL_ELSE could let the menu bar be generated from a single template, but that needs the templater calls to have a parameter saying which menu bar tab to activate. Is there any problem with adding such a parameter?
That's an idea I had a few time ago. Another solution would be to have a "generic" style sheet, and a little specific with only the differing menu. For example : style.css defines admin, acqui, about, circ... acqui.css defines only acqui. In every acquisition template : <include name="style.css"> <include name="acqui.css"> css RFP specifies that the last definition of a style is the active one. The advantage of such a solution is that it does nothing in perl scripts. -- Paul POULAIN Consultant indépendant en logiciels libres responsable francophone de koha (SIGB libre http://www.koha-fr.org)