| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Replacing Menu headings with Gifs? | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I've been having a look around but can't seem to find a simple solution - although i'm sure there is one...
How would I go about using gif images for the 'Catergories', 'Account', 'Bestsellers', 'Special' & 'Help' headings ?
__________________
X-Cart version : 4.0.18 Mod : Customer Also Bought Mod : Custom catergory Templates Mod : Custon Product Templates |
|||||||
#2
|
|||||||
|
|||||||
![]() Hard code them into the menus themselves. For categories as an example, edit categories.tpl, remove these lines:
{capture name=menu} {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu } and then just hard-code the image: [img]{$ImagesDir}/imagename.gif[/img]
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() Right, have done that in categories.tpl and it works lovely
![]() http://www.wyzeshop.com/screenshot6.jpg What code do I need to add and more importantly where do I put it? This was my original (modded) categories.tpl Quote:
And this is the new one with the capture tags removed : Quote:
__________________
X-Cart version : 4.0.18 Mod : Customer Also Bought Mod : Custom catergory Templates Mod : Custon Product Templates |
|||||||
#4
|
|||||||
|
|||||||
![]() That's because menu.tpl was calling the VertMenuBox class. You can add it back in by surrounding your code with a <div> tag like this:
<div class="VertMenuBox"> code </div>
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() Oh god am I just being a donut?
I can't get this working.. I've tried putting them in all sorts of places but nothing seems to work. I've put them at the very start and end of the code, at varying different points around text items etc I'm lost ![]() Could you show me where to insert them on the .tpl below please? Quote:
__________________
X-Cart version : 4.0.18 Mod : Customer Also Bought Mod : Custom catergory Templates Mod : Custon Product Templates |
|||||||
#6
|
|||||||
|
|||||||
![]() Try this:
Code:
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||
|
|||||||
![]() Nope
![]() That was the first thing I tried. I also copied and pasted the above with your ammendments just in case I missed something and still no love? This was the thing that caused me to start this thread in the first place. I couldn't work out how to bring that VERTMENU code back into the template after killing off the captures.
__________________
X-Cart version : 4.0.18 Mod : Customer Also Bought Mod : Custom catergory Templates Mod : Custon Product Templates |
|||||||
#8
|
|||||||
|
|||||||
![]() Anybody know how I can get this cell formatting back?
__________________
X-Cart version : 4.0.18 Mod : Customer Also Bought Mod : Custom catergory Templates Mod : Custon Product Templates |
|||||||
#9
|
|||||||
|
|||||||
![]() Sorry, forgot about this thread. Ok, add the menu wrapper back in (keep your custom image inside the {capture} tag, but change it to menu2.tpl. Create a new template called menu2.tpl, and insert this code in to it:
Code:
See if that does the trick.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#10
|
|||||||
|
|||||||
![]() Nope tried it with both :
{capture name=menu2.tpl} & {capture name=menu2} Both bring up an empty categories menu & I've lost the category jpg
__________________
X-Cart version : 4.0.18 Mod : Customer Also Bought Mod : Custom catergory Templates Mod : Custon Product Templates |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|