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

Creating new Menu for Static Pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 08-12-2006, 05:59 AM
  Zaja's Avatar 
Zaja Zaja is offline
 

X-Adept
  
Join Date: Mar 2004
Location: The Universe is my home
Posts: 420
 

Default

Sorry, my mistake, I forget capture menu code, use this code:

Code:
{* $Id: pages_menu.tpl,v 1.5 2005/11/17 06:55:36 max Exp $ *} {capture name=menu} <div class="categories"> {section name=pg loop=$pages_menu} &raquo;{$pages_menu[pg].title} {/section} </div> {/capture} { include file="menu.tpl" menu_title="Sell Books" menu_content=$smarty.capture.menu }
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote
  #12  
Old 08-12-2006, 06:12 AM
 
soyuz02 soyuz02 is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 71
 

Default

Got it thanks.

Very greatful for your effort!
__________________
X-Cart Version :: 4.1.6 (Finally)
X-Cart Mods :: Kids Skin by 7dana
Running on :: SUSE Linux 9.3 with Plesk 7.5.4
Webserv :: Apache 2.0.53
mySQL :: 4.1.10
PHP :: 4.3.10
Reply With Quote
  #13  
Old 09-13-2006, 07:54 AM
 
soyuz02 soyuz02 is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 71
 

Default Re: Creating new Menu for Static Pages

I cant get the menu to show up any more in 4.1.3. Any ideas whats wrong?
__________________
X-Cart Version :: 4.1.6 (Finally)
X-Cart Mods :: Kids Skin by 7dana
Running on :: SUSE Linux 9.3 with Plesk 7.5.4
Webserv :: Apache 2.0.53
mySQL :: 4.1.10
PHP :: 4.3.10
Reply With Quote
  #14  
Old 10-29-2007, 05:09 AM
 
sunset sunset is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 94
 

Default Re: Creating new Menu for Static Pages

Hi there

I have followed the exact instructions in the first part of this thread. So that was a success creating the first help menu in the left hand vertical menu on my site.

However, I cant for the life of me, change the first help label. I want a new menu title for the block of links called FAQ, Links & Colour Chart, but just cant seem to get it right. Can anyone shed some light: My store below is:
http://www.sunsetcrystals.com.au/home.php?shopkey=1234

Hoping someone can shed some light.

Thanks
__________________
Sunset
X-Cart Gold v4.1.8
Reply With Quote
  #15  
Old 10-29-2007, 07:43 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

Default Re: Creating new Menu for Static Pages

That should be a language variable called 'lbl_help'.

But i'd suggest you create a new variable as i'm guessing lbl_help is probably used in other areas of the XC site as well as the administration area.
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #16  
Old 10-29-2007, 03:16 PM
 
sunset sunset is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 94
 

Default Re: Creating new Menu for Static Pages

Thanks for your reply chamberinternet.....i have now changed it and it works great.
__________________
Sunset
X-Cart Gold v4.1.8
Reply With Quote
  #17  
Old 10-29-2007, 03:18 PM
 
sunset sunset is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 94
 

Default Re: Creating new Menu for Static Pages

Just another question, if i only want one of the static page links to go in the new menu, and leave the rest in the help menu, what coding do i use to do that?
__________________
Sunset
X-Cart Gold v4.1.8
Reply With Quote
  #18  
Old 10-30-2007, 01:09 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

Default Re: Creating new Menu for Static Pages

These two posts should answer your query:

http://forum.x-cart.com/viewtopic.php?t=30112
&
http://forum.x-cart.com/showthread.php?t=24113
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #19  
Old 10-30-2007, 02:21 AM
 
sunset sunset is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 94
 

Default Re: Creating new Menu for Static Pages

Brilliant chamberinternet...really appreciate your help.
__________________
Sunset
X-Cart Gold v4.1.8
Reply With Quote
  #20  
Old 11-06-2007, 02:24 AM
 
vivienne vivienne is offline
 

Senior Member
  
Join Date: May 2004
Location: Brisbane, Australia
Posts: 121
 

Default Re: Creating new Menu for Static Pages

I copied the code from Zaja but had to change the menu_cat.tpl to menu.tpl for it to work in my 4.1.8 - not sure if that is a right thing to do but it seems to have worked.

{* $Id: pages_menu.tpl,v 1.5 2005/11/17 06:55:36 max Exp $ *}
{capture name=menu}
<div class="categories">
{section name=pg loop=$pages_menu}
&raquo;{$pages_menu[pg].title}
{/section}
</div>
{/capture}
{ include file="menu_cat.tpl" menu_title="Sell Books" menu_content=$smarty.capture.menu }
__________________
X-Cart 4.18
www.naturalvetcompany.com
www.wkyp.com.au
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 01:48 AM.

   

 
X-Cart forums © 2001-2020