In detailed.html, I'd like to create a condition that would work on ANY subcategory of a particular main category.
I know I can do this using Category_Template like this
<%if Category_Template eq category_idioms.html %>
but I'd prefer to have only one category template, ie category.html.
Likewise, I'd prefer to have only one detailed template, ie detailed.html.
For example, I have several hundred categories arranged as:
Idioms <-- category
Idioms A <-- subcategories
Idioms B
Idioms C
etc to
Idioms Z
Quotes <-- category
Quotes A <-- subcategories
Quotes B
Quotes C
etc to
Quotes Z
How can I tell detailed.html the following (without using Category_Template)?
IF category is Any-Subcategory-of-Idioms THEN do this...
IF category is Any-Subcategory-of-Quotes THEN do this...
Thanks,
--Jo
I know I can do this using Category_Template like this
<%if Category_Template eq category_idioms.html %>
but I'd prefer to have only one category template, ie category.html.
Likewise, I'd prefer to have only one detailed template, ie detailed.html.
For example, I have several hundred categories arranged as:
Idioms <-- category
Idioms A <-- subcategories
Idioms B
Idioms C
etc to
Idioms Z
Quotes <-- category
Quotes A <-- subcategories
Quotes B
Quotes C
etc to
Quotes Z
How can I tell detailed.html the following (without using Category_Template)?
IF category is Any-Subcategory-of-Idioms THEN do this...
IF category is Any-Subcategory-of-Quotes THEN do this...
Thanks,
--Jo