View Single Post
  #5  
Old 08-12-2004, 05:27 AM
 
pmstudios pmstudios is offline
 

Senior Member
  
Join Date: May 2004
Posts: 133
 

Default

Quote:
Originally Posted by CC
I want to remove the backround orange for instance and the text: "Categories" with the dingbat, and just replace this with an image of a tab instead.
How would I go about this?

Thanks.

Just create a new variable and you can use it in the template.

Example:
Code:
{include file="menu.tpl" image="mytab.gif"}

Then you can use your variable in the template like so:
Code:
<TABLE cellpadding="0" cellspacing="0" border="0"> <TR> <TD>[img]{$ImagesDir}/{$image}[/img]</TD> </TR> </TABLE>

If you use a fixed width and height for all of your tabs you can do it like the example above. But if they will vary in size, you should use something like this:
Code:
{include file="menu.tpl" image="mytab.gif" width="120" height="35"}

And use the width/height settings in the template like width="{$width}" and height="{$height}"
__________________
X-Cart 4.0.5
MySQL: 3.23.58
PHP 4.3.2
Reply With Quote