Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Creat new menu - im stuck

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-18-2006, 06:02 PM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default 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?
__________________
Version 4.7.7
Reply With Quote
  #2  
Old 10-18-2006, 09:45 PM
  dalmuti's Avatar 
dalmuti dalmuti is offline
 

eXpert
  
Join Date: Oct 2004
Location: Kansas
Posts: 343
 

Default 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
__________________
Louise

Studio 57 Designs - X-Cart Customization
Providing X-Cart Services since 2004
Hottest Blog Directory - Submit Your Blog for a Free Listing
Reply With Quote
  #3  
Old 10-19-2006, 05:11 AM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default 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?
__________________
Version 4.7.7
Reply With Quote
  #4  
Old 10-19-2006, 05:25 AM
 
ranger82nd ranger82nd is offline
 

Senior Member
  
Join Date: Jan 2006
Posts: 159
 

Default Re: Creat new menu - im stuck

http://forum.x-cart.com/viewtopic.php?t=19184&highlight=static
__________________
X-Cart Gold v4.0.17 ~ EWD Hosting!
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:24 PM.

   

 
X-Cart forums © 2001-2020