Make Static Page a Category Page
First question - doesn't // comment out smarty tags? I'm having trouble hiding lines.
More importantly, I have a custom app that I'm leading into with a static page. This page should be a category page though.
I tried to just put the link into category.tpl. However, it is not styled like the rest of the categories. Is there a better way to do this? I haven't come up with anything by searching.
In Categories.tpl - I added the third line down.
{if $config.General.root_categories eq "Y"}
<div class="categories">
<a href="pages.php?pageid=9">My New Category Page</a><br/>
{foreach from=$categories item=c}
<a href="home.php?cat={$c.categoryid}">» { $c.category}</a>
{/foreach}
</div>
{else}
<div class="categories">
{foreach from=$subcategories item=c key=catid}
<a href="home.php?cat={$catid}">{$c.category}</a>
{/foreach}
</div>
{/if}
__________________
X-Cart 4.1.8
|