Hi,
I want to have a subsnav of each category, that recognizes any subcategories and auto fills them into a format. The approach I have been taking is labor intensive and means updating this file whenever a sub-category is added. It seems that there is some way to get the system to recognize subcats and fill them in.
What I've been working on doing is something like this:
<%if Name eq 'articles'%>
<p>
<p><a href="/content/articles/big_issues/">Big Issues</a>
<p><a href="/content/articles/books/">Books</a>
<p><a href="/content/articles/culture_Fix/">Culture Fix</a>
<p><a href="/content/articles/events/">Events</a>
<p><a href="/content/articles/health/">Health</a>
<a href="/content/articles/news/">News</a>
<a href="/content/articles/travel/">Travel</a>
</p>
<%endif%>
<%if Name eq 'classifieds'%>
<p>
<a href="/content/classifieds/services/">Services</a> <br> <br>
<a href="/content/classifieds/mail_order/">Mail Order</a> <br> <br>
<a href="/content/classifieds/travel/">Travel</a> <br> <br>
</p>
<%endif%>
But this requires I manually edit this file every time I add a category. Is there some way to use the globals to get linksSQL 2x to automagically read the categories and fill it in? I don't want to use a seperate file or template set for each category, too much upkeep. (if my design changes, I ahve to edit all those files)
Details, Details. (I don't know perl.)
I want to have a subsnav of each category, that recognizes any subcategories and auto fills them into a format. The approach I have been taking is labor intensive and means updating this file whenever a sub-category is added. It seems that there is some way to get the system to recognize subcats and fill them in.
What I've been working on doing is something like this:
<%if Name eq 'articles'%>
<p>
<p><a href="/content/articles/big_issues/">Big Issues</a>
<p><a href="/content/articles/books/">Books</a>
<p><a href="/content/articles/culture_Fix/">Culture Fix</a>
<p><a href="/content/articles/events/">Events</a>
<p><a href="/content/articles/health/">Health</a>
<a href="/content/articles/news/">News</a>
<a href="/content/articles/travel/">Travel</a>
</p>
<%endif%>
<%if Name eq 'classifieds'%>
<p>
<a href="/content/classifieds/services/">Services</a> <br> <br>
<a href="/content/classifieds/mail_order/">Mail Order</a> <br> <br>
<a href="/content/classifieds/travel/">Travel</a> <br> <br>
</p>
<%endif%>
But this requires I manually edit this file every time I add a category. Is there some way to use the globals to get linksSQL 2x to automagically read the categories and fill it in? I don't want to use a seperate file or template set for each category, too much upkeep. (if my design changes, I ahve to edit all those files)
Details, Details. (I don't know perl.)