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

add icons netx to category names

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-18-2006, 02:57 PM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default add icons netx to category names

I am not using fancy categories module.

I would like to add a "button" type image next to each listing in my categories menu - just to Pretty it up a little.

Is this possible and where do I start?
__________________
Version 4.7.7
Reply With Quote
  #2  
Old 10-18-2006, 05:29 PM
 
balinor balinor is offline
 

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

Default Re: add icons netx to category names

customer/categories.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 10-18-2006, 07:10 PM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default Re: add icons next to category names

Thanks so something like
<img src ="Button " height="10" width="10" img src="path to my file" cat={$categories[cat_num].categoryid}

Not sure where to plonk it in the code?
__________________
Version 4.7.7
Reply With Quote
  #4  
Old 10-19-2006, 02:27 AM
 
balinor balinor is offline
 

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

Default Re: add icons netx to category names

You don't need to put anything about the cat in there, just make it a simple image tag:

<img src="{$ImagesDir}/image.jpg" width="10" height="10">

Put it right before this:

<FONT class="CategoriesList">
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 10-19-2006, 03:58 AM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default Re: add icons netx to category names

This is great I'm learning very quickly.

The image sits real close to the category name. How do I put a space between the button image and the category text?

I appreciate your time.

Zane
__________________
Version 4.7.7
Reply With Quote
  #6  
Old 10-19-2006, 03:59 AM
 
balinor balinor is offline
 

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

Default Re: add icons netx to category names

add a padding value to it:

<img src="{$ImagesDir}/image.jpg" width="10" height="10" style="padding-right: 10px;">
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 10-19-2006, 04:38 AM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default Re: add icons netx to category names

Thanks. It doesnt seem to have any effect, this is what I have.

<img src="{$ImagesDir}/menu_ball.gif" width="16" height="16"
style="padding-right: 40px;">

??
__________________
Version 4.7.7
Reply With Quote
  #8  
Old 10-19-2006, 05:11 AM
 
ranger82nd ranger82nd is offline
 

Senior Member
  
Join Date: Jan 2006
Posts: 159
 

Default Re: add icons netx to category names

What if I wanted a different icon for each category?
__________________
X-Cart Gold v4.0.17 ~ EWD Hosting!
Reply With Quote
  #9  
Old 10-19-2006, 07:46 AM
 
balinor balinor is offline
 

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

Default Re: add icons netx to category names

That is an entirely different bit of code I'm afraid
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #10  
Old 10-19-2006, 10:27 AM
 
ranger82nd ranger82nd is offline
 

Senior Member
  
Join Date: Jan 2006
Posts: 159
 

Default Re: add icons netx to category names

A little clue?
Code:
{if} {$category=xxxxx} <img src=xxxx> {else}
Would it be something along these lines?
__________________
X-Cart Gold v4.0.17 ~ EWD Hosting!
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:08 AM.

   

 
X-Cart forums © 2001-2020