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

How do I add a new label

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-13-2007, 11:58 PM
  BizzyB's Avatar 
BizzyB BizzyB is offline
 

Senior Member
  
Join Date: Sep 2006
Location: Australia
Posts: 102
 

Question How do I add a new label

Hi,

I seem to get stuck on what would appear to be the simplest of tasks.

All I want to do is to add a label either within the Help menu or the Categories menu. I just want to insert a link within that label so that when the label is clicked the link is activated.

I have created a new label but haven't a clue on how to access that labels properties to insert code - even worse I don't know how to display the newly created label.

I have managed to insert a label in the Categories menu but that is as far as I have been able to go. I haven't a clue on where to insert the link code.

The method must be more complicated than I imagined as I have spent hours pouring over this forum and the X-cart manual without success - would someone be good enough to guide me in the right direction.

TIA
__________________
Version = X-Cart 4.1.3 Gold
Status - Closed
Addon: Magnifier
OS = Windows
Western Australia
Reply With Quote
  #2  
Old 01-14-2007, 12:04 AM
  NightFire's Avatar 
NightFire NightFire is offline
 

X-Adept
  
Join Date: Jul 2004
Location: The Netherlands
Posts: 561
 

Default Re: How do I add a new label

First add a language label. It will look something like this:
lbl_your_text_label
To insert is, you may have to edit some templates. For example you want to use this label for a menu:
And include the label in the template like this: {$lng.lbl_you_text_label}
And then if you want to use the label with a link / url do it like this:
<A href="your url here">{$lng.lbl_your_text_label}</A><BR>
That should do the trick. It only works in templates, not the php files.
Hope this gives you a start..
__________________
Best regards,
Niki Buitenrust Hettema

X-Cart Gold 4.1.8 (Live & Loaded)
Royal Bhaktapur: Handmade products from Nepal - Pashmina's, scarfs, shawls, stola's and more...
Reply With Quote
  #3  
Old 01-15-2007, 02:19 AM
  BizzyB's Avatar 
BizzyB BizzyB is offline
 

Senior Member
  
Join Date: Sep 2006
Location: Australia
Posts: 102
 

Default Re: How do I add a new label

Sorry for being tardy with my reply but I have been going around in circles.

I eventually worked it out but it involved a php file and a tpl file (as you menioned). I also placed the label in the Categories Menu so that also involved the categories.tpl.

Many thanks for your advice, it put me on the right track.

Regards
__________________
Version = X-Cart 4.1.3 Gold
Status - Closed
Addon: Magnifier
OS = Windows
Western Australia
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:47 AM.

   

 
X-Cart forums © 2001-2020