![]() |
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 |
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.. |
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 |
All times are GMT -8. The time now is 08:38 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.