![]() |
Changing the look of "blocks".. im confused
How do you edit the html of an ENTIRE block such as menu_cart.tpl? Im looking to make structural changes through html and not just change the colors through CSS. As far as I can tell the outer table data is kept in {capture name=menu} somehow but i have no understanding how that works... (without that code the block expands to fill the whole page and the functionality breaks)
Editing menu_cart.tpl only seems to change the structure inside the cell where the cart data goes. i cant for the life of me figure out how to access the top table row(where it says "Your Cart"). Where is the actual outer table html kept or how can I modify it? Is this even possible? :P I am using X-Cart 4.0 |
the menus and the center box's have a template wrapped round them
the menus ues - menu.tpl the center box's use - dialog.tpl edit those and your good to go if you want to change just one instance then make a new wrapper and edit the code that calls it at the bottom of the item eg Code:
{ include file="menu.tpl" dingbats="dingbats_authentification.gif" menu_title=$lng.lbl_authentication menu_content=$smarty.capture.menu } |
Thank You!!
|
Quote:
I see what ur saying, but I dont quite follow, is there any chance you could explain a little more please? How can I change the title of the boxes to an image instead? 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. |
Quote:
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"> 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}" |
Argh, ok I see what your saying.
So where would the variable be stored? In the template itself? Or is there a location for all veriables in X-Cart? |
All times are GMT -8. The time now is 07:32 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.