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

help.php?section=xyz and static pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-29-2005, 11:50 AM
 
thumbsatplay thumbsatplay is offline
 

Advanced Member
  
Join Date: May 2005
Posts: 32
 

Default help.php?section=xyz and static pages

When I create static pages, X-cart creates a link like this: http://www.mysite.com/store/pages.php?pageid=1

How do I get it so that the link is like:
http://www.mysite.com/store/help.php?section=about_us

It's more descriptive that way than having a page_id assigned to it. I've searched the forum to no avail. Thanks for any help.
__________________
X-Cart Version: 4.0.17
Operating System: Linux
Add Ons: N/A
URL: http://www.thumbsatplay.com
Reply With Quote
  #2  
Old 06-29-2005, 11:52 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

That isn't the way the static pages work. If you want to use a link like the contact us forum, you need to create that in the help section, the index.tpl file.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 06-29-2005, 11:59 AM
 
thumbsatplay thumbsatplay is offline
 

Advanced Member
  
Join Date: May 2005
Posts: 32
 

Default

Thanks Padriac. That's exactly what I was looking for. When I was creating static pages, it was automatically sticking them in the Help section, but the link was pointing to the page ID which is not intuitive. Thanks again.
__________________
X-Cart Version: 4.0.17
Operating System: Linux
Add Ons: N/A
URL: http://www.thumbsatplay.com
Reply With Quote
  #4  
Old 06-29-2005, 12:00 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

You can remove/move the code that automatically places static pages in the help section. It is this piece of code in help.tpl:

{include file="pages_menu.tpl"}

You can put it in another menu, or remove it all together and just call your static pages using hard links.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 07-05-2005, 12:45 PM
 
jayzeey jayzeey is offline
 

Advanced Member
  
Join Date: Jun 2005
Location: Mizzou
Posts: 50
 

Default

If I were wanting to create a new page and make the link appear under the 'category' box on the left, what would I change the code to? Searched and could not find.
thank you
jayzeey
__________________
success is a matter of luck...ask any failure
earl wilson

gold v4.0.14
Reply With Quote
  #6  
Old 07-05-2005, 12:48 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Just hard-code the link in the bottom of categories.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
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 07:12 AM.

   

 
X-Cart forums © 2001-2020