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

Moving the link for a static page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-08-2006, 02:54 PM
 
Shaun Shaun is offline
 

Senior Member
  
Join Date: Sep 2005
Location: Michigan, USA
Posts: 176
 

Default 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!
__________________
X-Cart 5.4.1.19
Live site - www.streetortrack.com
Reply With Quote
  #2  
Old 07-08-2006, 02:59 PM
 
mrkenzie mrkenzie is offline
 

Senior Member
  
Join Date: May 2006
Posts: 182
 

Default

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
__________________
Mike Kenzie
X Cart Gold Ver. 4.1.3
X-RMA
X-AOM
X-Product Comparison
Reply With Quote
  #3  
Old 07-08-2006, 03:50 PM
 
Shaun Shaun is offline
 

Senior Member
  
Join Date: Sep 2005
Location: Michigan, USA
Posts: 176
 

Default

I don't really need to create a new section, just move the link from Help to Special...
__________________
X-Cart 5.4.1.19
Live site - www.streetortrack.com
Reply With Quote
  #4  
Old 07-08-2006, 07:20 PM
 
robf robf is offline
 

Advanced Member
  
Join Date: May 2006
Posts: 61
 

Default

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!
__________________
x-cart 4.1.6
PHP 4.4.2
MySQL server 4.0.26-log
MySQL client 5.0.20
Operation system FreeBSD
Perl 5.008008
Reply With Quote
  #5  
Old 07-10-2006, 06:14 AM
 
Shaun Shaun is offline
 

Senior Member
  
Join Date: Sep 2005
Location: Michigan, USA
Posts: 176
 

Default

How do I figure out the label name I've set for pictures?
__________________
X-Cart 5.4.1.19
Live site - www.streetortrack.com
Reply With Quote
  #6  
Old 07-10-2006, 10:23 PM
 
robf robf is offline
 

Advanced Member
  
Join Date: May 2006
Posts: 61
 

Default

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
__________________
x-cart 4.1.6
PHP 4.4.2
MySQL server 4.0.26-log
MySQL client 5.0.20
Operation system FreeBSD
Perl 5.008008
Reply With Quote
  #7  
Old 07-11-2006, 04:36 AM
 
Shaun Shaun is offline
 

Senior Member
  
Join Date: Sep 2005
Location: Michigan, USA
Posts: 176
 

Default

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.
__________________
X-Cart 5.4.1.19
Live site - www.streetortrack.com
Reply With Quote
  #8  
Old 07-11-2006, 09:38 AM
 
robf robf is offline
 

Advanced Member
  
Join Date: May 2006
Posts: 61
 

Default

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.
__________________
x-cart 4.1.6
PHP 4.4.2
MySQL server 4.0.26-log
MySQL client 5.0.20
Operation system FreeBSD
Perl 5.008008
Reply With Quote
  #9  
Old 07-20-2006, 02:57 PM
 
Shaun Shaun is offline
 

Senior Member
  
Join Date: Sep 2005
Location: Michigan, USA
Posts: 176
 

Default

How do I figure out the page ID#?

Thanks

Shaun
__________________
X-Cart 5.4.1.19
Live site - www.streetortrack.com
Reply With Quote
  #10  
Old 07-20-2006, 04:21 PM
 
robf robf is offline
 

Advanced Member
  
Join Date: May 2006
Posts: 61
 

Default

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.
__________________
x-cart 4.1.6
PHP 4.4.2
MySQL server 4.0.26-log
MySQL client 5.0.20
Operation system FreeBSD
Perl 5.008008
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:01 PM.

   

 
X-Cart forums © 2001-2020