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)
-   -   Creat new menu - im stuck (https://forum.x-cart.com/showthread.php?t=25923)

zebu 10-18-2006 06:02 PM

Creat new menu - im stuck
 
I want to create a new Menu Box called FAQ, and have it sit on the page below the "Please login" box. In this menu i would like it to list links to static html pages I create

I would like to leave the default static mages in the help menu.

I created a new skin1\faq.tpl (not sure what to put in it!!)

In skin1/customer/home.tpl I added {include file="faq.tpl"}

After that point i kind of get lost, any suggestions please?

dalmuti 10-18-2006 09:45 PM

Re: Creat new menu - im stuck
 
Put this in your new template file.

Quote:

{capture name=menu}

Add your content here

{/capture}
{ include file="menu.tpl" dingbats="ding-help.jpg" menu_title=$lng.lbl_help menu_content=$smarty.capture.menu}




This code is the menu title: menu_title=$lng.lbl_help - change $lng.lbl_help to whatever you want the menu to be titled.

This code is the image in the menu title: dingbats="ding-help.jpg"

Hope that helps,

Louise

zebu 10-19-2006 05:11 AM

Re: Creat new menu - im stuck
 
Hi Louise,

Thanks for the tip. I dont get a new menu - but I get an error on the page
(where the menu should be

Warning: Smarty error: unable to read resource: "faq.tpl" in /clientdata/www/au/e/everythingpets.com.au/shop/Smarty-2.6.9/Smarty.class.php on line 1088

faq.tpl is the new template. its only contents is

{capture name=menu}

{/capture}
{ include file="menu.tpl" dingbats="ding-help.jpg" menu_title= FAQ Section }

any ideas?

ranger82nd 10-19-2006 05:25 AM

Re: Creat new menu - im stuck
 
http://forum.x-cart.com/viewtopic.php?t=19184&highlight=static


All times are GMT -8. The time now is 05:48 PM.

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