![]() |
Creating new Menu for Static Pages
Hi,
I wanted to create a new menu to display the links to all the static pages I create instead of having them under "Help". I followed the intructions below and it worked just fine. Quote:
However I do have one small issue. I have integrated the menu so that it comes up on the left side below the categories menu. Is does this fine however the formatting was slightly different. I wanted to assign the same css class as the categories menu. Hence in the pages menu I added div tags to make it look like this: Code:
{* $Id: pages_menu.tpl,v 1.5 2005/11/17 06:55:36 max Exp $ *} It works but it shifts the new links slightly inwards and not flush against the left side like in the categories menu. Looks like this: http://www.bccbdubai.com/problem2.jpg Any ideas how I can make it look like under the categories menu? Would be a great help. Thanks. |
Use following code for new_menu.tpl:
Code:
{* $Id: pages_menu.tpl,v 1.5 2005/11/17 06:55:36 max Exp $ *} |
It works for the formatting but now that menu no longer displays the links to the static pages. Clicking the link now simply does the same thing as when I click the first link of the categories menu. And the statics page links are displayed in the categories menu.
http://www.bccbdubai.com/problem3.jpg Help? Its your kids template im using :D |
Works 100% correctly, just tested on your site. :wink:
Sell Books menu link is linked to Sell Books page with "Page1 content" text as content. EDITED: Now you have moved static page link to Categories box? |
This is how i see it:
http://www.bccbdubai.com/problem3.jpg The sell Books link should appear under the sell books menu. And the sell books menu should not contain another categories link (Textbooks) ? Thanks |
I didnt move anything, this is how it showed to me right from when I made the change you suggested. I now created a new static page and its also showing up under the category menu. Help? Thanks
|
I checked 10 minutes before and pages menu worked fine. Now you have moved static page link to Categories box? Why?
It's very simple, don't touch categories menu, just create new menu for static pages with following code, tested and work 110%: Code:
{* $Id: pages_menu.tpl,v 1.5 2005/11/17 06:55:36 max Exp $ *} Or send me ftp info to support@7dana.com and I will make this for you. |
Seriously, it doesnt work, it keeps on doing the same thing although i didnt touch the other menus. I think 10 mins ago you got confused cause I had a second category called Sell Books which I deleted afterwards, thats maybe why you saw it displaying.
Heres my categories.tpl Code:
{* $Id: categories.tpl,v 1.26 2005/11/17 06:55:37 max Exp $ *} Heres my customer/home.tpl Code:
{* $Id: home.tpl,v 1.88.2.2 2006/06/30 10:09:49 max Exp $ *} Heres my sell_menu.tpl Only thing ive changed is to localise label Code:
{* $Id: pages_menu.tpl,v 1.5 2005/11/17 06:55:36 max Exp $ *} |
1. Create empty text file named new_menu.tpl in skin/customer/ and copy following code inside:
Code:
{* $Id: pages_menu.tpl,v 1.5 2005/11/17 06:55:36 max Exp $ *} Code:
{include file="customer/new_menu.tpl" } |
Did everything you said and same thing keeps happening. Weird....
|
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 $ *} |
Got it thanks.
Very greatful for your effort! |
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?
|
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 |
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. |
Re: Creating new Menu for Static Pages
Thanks for your reply chamberinternet.....i have now changed it and it works great.
|
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?
|
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 |
Re: Creating new Menu for Static Pages
Brilliant chamberinternet...really appreciate your help.
|
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} »{$pages_menu[pg].title} {/section} </div> {/capture} { include file="menu_cat.tpl" menu_title="Sell Books" menu_content=$smarty.capture.menu } |
Re: Creating new Menu for Static Pages
Ok, I too got the script to work and put the static pages under a newly created section. My question is: How do you rename the new section? When I created it following the code from Nightfire I get two sections called Help.
Thanks for helping me :-) |
Re: Creating new Menu for Static Pages
I too could ue a little help here. I've got it up and working, but don't know how to create a dynamically called link. please see the OTHER:Tours example in the left nav here:
http://www.southamericansecrets.com/store/home.php My new_menu.tpl: {* $Id: pages_menu.tpl,v 1.5 2005/11/17 06:55:36 max Exp $ *} {capture name=menu} <a class=VertMenuItems href="{$pages_menu[pg].title}" class="block"> {section name=pg loop=$pages_menu} »{$pages_menu[pg].title} {/section} </a> {/capture} { include file="menu.tpl" menu_title="Other" menu_content=$smarty.capture.menu } Thanks for any help! |
All times are GMT -8. The time now is 12:33 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.