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

Customizing category title in side menu

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-12-2007, 07:18 PM
  connemara's Avatar 
connemara connemara is offline
 

Senior Member
  
Join Date: Jan 2006
Location: Vancouver Island, Canada
Posts: 167
 

Default Customizing category title in side menu

I would like to change the category menu titles to images - ONLY in the side menu.
So "Products", "Help" etc would use a graphic instead of a font.
The current CSS definition is global and I need to define each one somewhere.
This is for cart version 4.0.18
Should I create new css definitions and then add html to the actual labels with specified IDs?
Or is there a better way to go about this?
Thanks
Connie
__________________
Versions 4.7.6
multiple mods and customizations
Reply With Quote
  #2  
Old 03-12-2007, 09:52 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: Customizing category title in side menu

edit categories.tpl and change the stuff between the anchor (<a href="asdf">stuffbetweenanchor</a>) to <img src="images/{$categories[cat_num].category}.theimagefileextension" /> or <img src="images/{$subcategories[cat_num].category}.theimagefileextension" /> if you use subcategories

and place your images in the skin1/images directory as well as naming them exactly like their category names
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #3  
Old 03-13-2007, 09:35 AM
  connemara's Avatar 
connemara connemara is offline
 

Senior Member
  
Join Date: Jan 2006
Location: Vancouver Island, Canada
Posts: 167
 

Default Re: Customizing category title in side menu

Thank you for that information which I will keep handy- wasn't quite what I was looking for but highly useful!

I think I mis-titled my request. It is not the category title only that I want to customize, , but all TITLES in the main menu. (categories -which I named "shopping", help, specials, cart, etc) These are labels and the appearance controlled by the stylesheet.

I will attempt to insert an image of what I am trying to convey. .

I went to labels, and instead of setting the value to the word "categories", I tried to link to an image instead. Well it looked to be a start. I got the little box indicating no image was found- neither an absolute or relative link path worked AND discovered that it would affect other places (like in admin under the management section)

So how can I change those titles, for the customer side only? vertmenutitle is a global class used for all the menu titles now. Is it best to create new classes/IDs for each individual menu title? And where do you call them?
Attached Thumbnails
Click image for larger version

Name:	menu-comparison.jpg
Views:	272
Size:	13.3 KB
ID:	281  
__________________
Versions 4.7.6
multiple mods and customizations
Reply With Quote
  #4  
Old 03-13-2007, 11:13 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: Customizing category title in side menu

are you linking to the correct directory? the directory starts off at skin1...to change just the titles on the customer side wrap the img src in {if $usertype eq "C"}{/if}
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #5  
Old 03-14-2007, 12:03 PM
  connemara's Avatar 
connemara connemara is offline
 

Senior Member
  
Join Date: Jan 2006
Location: Vancouver Island, Canada
Posts: 167
 

Default Re: Customizing category title in side menu

Thank you! I am getting so much closer and appreciate your patience.

So, I have wrapped the link like so:
{if $usertype eq "C"} <IMG src="skin1/images/shopping.gif" width="117" height="44" border="0" alt="Go Shopping>{/if}

The image shows perfectly, but I know I haven't done this quite correctly because the if statement shows on the customer menu and the whole code shows in the admin menu. Obviously I didn't quite get it. Is there something else I should be doing?
Connie
__________________
Versions 4.7.6
multiple mods and customizations
Reply With Quote
  #6  
Old 03-24-2007, 01:03 PM
  connemara's Avatar 
connemara connemara is offline
 

Senior Member
  
Join Date: Jan 2006
Location: Vancouver Island, Canada
Posts: 167
 

Default Re: Customizing category title in side menu

OK finally figured it out- at least so far so good


Connie
__________________
Versions 4.7.6
multiple mods and customizations
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 01:57 PM.

   

 
X-Cart forums © 2001-2020