| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Make Static Page a Category Page | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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 |
|||||||
#2
|
|||||||
|
|||||||
Re: Make Static Page a Category Page
First, be sure to read the template editing guide to learn about commenting things out and what templates are what.
Category pages and static pages are two different things, so they can't be one and the same, so I'm not sure what you mean by a static page being a category page?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
Re: Make Static Page a Category Page
I wanted to redirect a category page to a static page. The static page represents a "doorway" to a certain class of products.
I got it to work this way. I made a category page and then edited categories.tpl within the {foreach} loop to add an {if} statement to look for the X-Cart Category and substitute my page. {if $c.category eq "TheCategoryName"} <a href="pages.php?pageid=9">» TheCategory Name</a> {else} go on with the loop. Thanks for answering my dumb questions.
__________________
X-Cart 4.1.8 |
|||||||
|
|||
X-Cart forums © 2001-2020
|