Laura,
I was wondering if you know how I can can also get just the name of the parent category. When I'm on the category.html page and do a <%GT::Template::dump%> I can get the name of the parent category by using the following :
<%Dir_Name%>
<%Full_Name%>
<%Name%>
<%category_first%>
<%category_name%>
<%category_name_escaped%>
<%category_short%>
<%g%>
all on the page where the parent category is the category of the page.
However when going further down into the categories (hence the parent category is not the category of the page) none of the above display the parent category alone in the tags all tags display the present category preceded by the parent category or the last part of the category crumb
For example if a parent category is called "Sports" then two categories down I would have :
Sports > Indoor > Football
On this page however I would like to display the word "Sports" but none of the tags contain the word "Sports" alone.
I was thinking that by using the FatherID I could get the Full_Name of the parent category but when I insert the above tags in during the <%if get_cat_image%> <%endif%> I get the same results as on the category.html page. Do I need to call it in the sub and give it another name that I can call afterwards ? I tried using <%$cat%> but the tag is unknown.
Any ideas where I should be looking ?
Thanks, John
Significant Media
I was wondering if you know how I can can also get just the name of the parent category. When I'm on the category.html page and do a <%GT::Template::dump%> I can get the name of the parent category by using the following :
<%Dir_Name%>
<%Full_Name%>
<%Name%>
<%category_first%>
<%category_name%>
<%category_name_escaped%>
<%category_short%>
<%g%>
all on the page where the parent category is the category of the page.
However when going further down into the categories (hence the parent category is not the category of the page) none of the above display the parent category alone in the tags all tags display the present category preceded by the parent category or the last part of the category crumb
For example if a parent category is called "Sports" then two categories down I would have :
Sports > Indoor > Football
On this page however I would like to display the word "Sports" but none of the tags contain the word "Sports" alone.
I was thinking that by using the FatherID I could get the Full_Name of the parent category but when I insert the above tags in during the <%if get_cat_image%> <%endif%> I get the same results as on the category.html page. Do I need to call it in the sub and give it another name that I can call afterwards ? I tried using <%$cat%> but the tag is unknown.
Any ideas where I should be looking ?
Thanks, John
Significant Media