X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Categories As an UL? (https://forum.x-cart.com/showthread.php?t=29730)

EZQ 03-16-2007 09:51 AM

Categories As an UL?
 
Is there any way I can get the categories to generate as an unordered list? I would like to style the list and not using psuedo selectors to style for example a:link.

New to smarty but I am well versed in XHTML and CSS.

balinor 03-16-2007 10:01 AM

Re: Categories As an UL?
 
Sure, just open up customer/categories.tpl and add the formatting to the code.

EZQ 03-16-2007 10:16 AM

Re: Categories As an UL?
 
My problem is I cannot decipher in smarty where the INDIVIDUAL categories are shown. I am having a hell of a time with smarty i am not use to a page being broken up into so many pieces. Its like someone shattered a piece of glass heh

{capture name=menu}
{if $active_modules.Fancy_Categories ne ""}
{include file="modules/Fancy_Categories/categories.tpl"}
{assign var="fc_cellpadding" value="0"}
{else}
{if $config.General.root_categories eq "Y"}
{foreach from=$categories item=c}
<font class="CategoriesList"><a href="home.php?cat={$c.categoryid}" class="VertMenuItems">{$c.category}</a></font><br />
{/foreach}
{else} {foreach from=$subcategories item=c key=catid}
<font class="CategoriesList"><a href="home.php?cat={$catid}" class="VertMenuItems">{$c.category}</a></font><br />
{/foreach}
{/if}
{/if}
{/capture}
{ include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding}</a>


I have my CSS and XHTML written. Now I just need to figure out how to integrate it into smarty.

If all I had to do was type the direct link and style it this would be cake. Maybe i should start using smarty in my own apps heh.

balinor 03-16-2007 10:22 AM

Re: Categories As an UL?
 
It is this part:

<font class="CategoriesList"><a href="home.php?cat={$c.categoryid}" class="VertMenuItems">{$c.category}</a></font><br />


All times are GMT -8. The time now is 11:10 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.