![]() |
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. |
Re: Categories As an UL?
Sure, just open up customer/categories.tpl and add the formatting to the code.
|
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. |
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.