NetMarketer
06-09-2006, 04:43 PM
Hi All,
I was wondering if someone could tell me the proper code to insert the category number in the directory article page itself.
For example: when I have a category, I have inserted this smarty code:
{include file="$category.tpl"}
To include a template based on that category.
However, this little snippet of smarty code doesn't work when it's actually displaying the article on phpLD.
Is there a different way to include the $category.tpl in each directory article
(maybe the newer version of the article script has this. I noticed in the example at the top it shows the category in which the article was posted, but I just need to have the category number for this purpose.)
I hope I've explained it properly :-D Thanks for your assistance,
Marylou
I was wondering if someone could tell me the proper code to insert the category number in the directory article page itself.
For example: when I have a category, I have inserted this smarty code:
{include file="$category.tpl"}
To include a template based on that category.
However, this little snippet of smarty code doesn't work when it's actually displaying the article on phpLD.
Is there a different way to include the $category.tpl in each directory article
(maybe the newer version of the article script has this. I noticed in the example at the top it shows the category in which the article was posted, but I just need to have the category number for this purpose.)
I hope I've explained it properly :-D Thanks for your assistance,
Marylou