X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Custom Block Help please (https://forum.x-cart.com/showthread.php?t=42925)

ibit-matt 10-11-2008 11:37 AM

Custom Block Help please
 
1 Attachment(s)
Hi there I have created a new_menu.tpl and uploaded it to the skin1 root folder

This is temp code I have added to the file

new_menu.tpl

Code:

<h1>New Menu</h1>
<h3>Home</h3>
<h3>Products</h3>


I have then added this code the the home.tpl file to make it show on the homepage on the left handside

Code:

{include file="new_menu.tpl" }


My question is why do I not have a box around the module and blue header like the navagtion block above

See image attached

pcparts 10-11-2008 12:36 PM

Re: Custom Block Help please
 
Hi

Try this mate.

Code:

{* $Id: categories.tpl,v 1.1.2.34 2008/05/26 07:35:16 max Exp $ *}
{capture name=menu}
<h1>New Menu</h1>
<h3>Home</h3>
<h3>Products</h3>
{/capture}
{ include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding}


ibit-matt 10-11-2008 11:54 PM

Re: Custom Block Help please
 
HI there that work.

Can you explain what the extra lines of code mean please. :-)

JWait 10-12-2008 05:04 PM

Re: Custom Block Help please
 
See http://forum.x-cart.com/showthread.php?t=21529
It explains pretty much what each template does.


All times are GMT -8. The time now is 03:27 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.