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)
-   -   Moving the link for a static page (https://forum.x-cart.com/showthread.php?t=23111)

Shaun 07-08-2006 02:54 PM

Moving the link for a static page
 
So I finally figured out how to create a static page - http://www.streetortrack.com/Pictures-p-3.html

I'm using a different skin and can't seem to find out how to move the link 'Pictures' under my 'Help' menu on the bottom left of the page to somewhere else. I'd ideally like to move it under 'Special'.

Thanks!

mrkenzie 07-08-2006 02:59 PM

Take a look at this and see if it is what you are looking for:

http://forum.x-cart.com/viewtopic.php?t=19184&highlight=static

Shaun 07-08-2006 03:50 PM

I don't really need to create a new section, just move the link from Help to Special...

robf 07-08-2006 07:20 PM

Hey there, its quite easy to make that change, this is what I do.

Open up skin1/customer/special.tpl

Find this in the file

Code:

{if $active_modules.Gift_Certificates ne ""}
{ include file="modules/Gift_Certificates/gc_menu.tpl" }
{/if}


Add this code just before the code above.


Change the 15 to the page id you want to point to, it looks to me like you want 3. Then change $lng.lbl_help_center_shipping_faq to the label name you have set for pictures. You might also want to change the class to match the same style you have in your menus. Use this same line to have a static page show up anywhere in your site.


Now that you have the link in the specials menu you probably want to remove it from the help section. To do this do the following.

Open up skin1/pages_menu.tpl

You should see the following.

Code:

{section name=pg loop=$pages_menu}
{$pages_menu[pg].title}

{/section}


those lines tell it to show all the static pages you create under the help menu, just use the same line with the correct page id to just show the pages you want in the help section.


Just add
to the beginning of every other line you add to either file.

Good luck! :wink:

Shaun 07-10-2006 06:14 AM

How do I figure out the label name I've set for pictures?

robf 07-10-2006 10:23 PM

If you log into your admin area, then go to languages, select english. Then scroll down to apply filter, type in pictures and it should find that label.

Hope that helps

Shaun 07-11-2006 04:36 AM

Hmmm, tried that and it returns nothing. How else can I find out the label?

I have a fair few static pages I need to create so I hope I can figure this out. :cry:

robf 07-11-2006 09:38 AM

thats strange it should have showed up, when you typed in "pictures" in the apply filter box did you have the select topic option set to all?

Well if you can't find it, no big deal, just create a new label. You can do that near the bottom of the screen you're on. Select labels for the type and call the variable, which I have been referring to as the name, anything you want starting with lbl_ and there should be no spaces, and then for the value enter Pictures.

Then change that small line of code with your label name and correct page ID#.

Do the same thing for all the static pages you want to make. You will have to remember once you edit the help.tpl file to remove the pictures link, after that any new static pages you create will not show up anywhere on the stie, you have to manually place them where you want using that code.

Well let me know how you make out.

Shaun 07-20-2006 02:57 PM

How do I figure out the page ID#?

Thanks

Shaun

robf 07-20-2006 04:21 PM

You normally just have to hold your mouse over the link and at the bottom of the browser it will show the link to the page, at the end it will have the number. I see you have a SEO mod for the links so it doesn't show that anymore, I have a feeling your picture page id# is 03, as there is a 3 there. If that's not it log into the admin area, go to the static pages and open the page there, hopefully up top in address bar it will show it.


All times are GMT -8. The time now is 07:08 AM.

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