Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Categories As an UL?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-16-2007, 09:51 AM
 
EZQ EZQ is offline
 

Newbie
  
Join Date: Mar 2007
Posts: 2
 

Default 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.
__________________
Version 4.1.6
Reply With Quote
  #2  
Old 03-16-2007, 10:01 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Categories As an UL?

Sure, just open up customer/categories.tpl and add the formatting to the code.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-16-2007, 10:16 AM
 
EZQ EZQ is offline
 

Newbie
  
Join Date: Mar 2007
Posts: 2
 

Default 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.
__________________
Version 4.1.6
Reply With Quote
  #4  
Old 03-16-2007, 10:22 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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 />
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:23 AM.

   

 
X-Cart forums © 2001-2020