| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Categories As an UL? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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.
__________________
Version 4.1.6 |
|||||||
#2
|
|||||||
|
|||||||
![]() Sure, just open up customer/categories.tpl and add the formatting to the code.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() 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.
__________________
Version 4.1.6 |
|||||||
#4
|
|||||||
|
|||||||
![]() It is this part:
<font class="CategoriesList"><a href="home.php?cat={$c.categoryid}" class="VertMenuItems">{$c.category}</a></font><br />
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
|||
X-Cart forums © 2001-2020
|