|
From: barry <sla...@i1...> - 2001-10-31 18:54:25
|
in a template, is there a variable or some other way to know what section is currently active? for instance, in there are template named this: header;misc;default sectionIndex;misc;default sectionIndex;misc;secName header;misc;default includes sectionIndex: [% INCLUDE SectionIndex %] if the current section is secName, then the second sectionIndex template gets used, otherwisee the first one does. I would like to have only one sectionIndex template, and use the template scripting to generate the content dynamically, but I don't know how it can determine the current section context. I envision something like this: [%IF currentSection="a" %] content for section a [%END%] [%IF currentSection="b" %] content for section b [%END%] etc. Any suggestions? I have a lot of theese section index files and I would like to consolidate them if at all possible. Thanks! Barry |