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

Created new template - links broken. HELP please.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-27-2005, 07:29 PM
 
NJB NJB is offline
 

Member
  
Join Date: Mar 2005
Posts: 28
 

Default Created new template - links broken. HELP please.

I have created an addtitional menu column on my home page, which I modelled on "help.tpl", and called "help2.tpl". I also created a separate help2 directory. The issue I am having is that none of the links (ie. to the wholesale discounts page) will work. I get a HTTP 404 - File not found error.

I've double-checked that the names of the files are exactly the same to rule out case-sensitive issues, and can't figure out what I'm doing wrong.
All the template pages I want to link to are located in the help2 directory.

Here's an example from help2.tpl....have I got something wrong with the code?


Any help is appreciated. Thanks.
__________________
NJB
Sydney, Australia
x-Cart Version 4.0.12
Reply With Quote
  #2  
Old 03-28-2005, 05:07 AM
 
balinor balinor is offline
 

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

Default

That is because you are calling help2.php, which doesn't exist unless you created a new .php file. Remember, .php files are different than .tpl files.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-28-2005, 12:24 PM
 
NJB NJB is offline
 

Member
  
Join Date: Mar 2005
Posts: 28
 

Default

This is probably a silly question, but where and how do I create php files?
__________________
NJB
Sydney, Australia
x-Cart Version 4.0.12
Reply With Quote
  #4  
Old 03-28-2005, 12:28 PM
 
balinor balinor is offline
 

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

Default

You shouldn't need to if you are just creating new menus. Just create the the templates like you have and call them from home.tpl. Then put the links you want in the new menus. Exactly what page are you trying to create a link to? Is the Wholesale Discounts page a static page you have created?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 03-29-2005, 12:47 AM
 
NJB NJB is offline
 

Member
  
Join Date: Mar 2005
Posts: 28
 

Default

I was trying to link to templates I'd created, but linking to the Static pages was much much easier. Thanks for pointing me in the right direction.
__________________
NJB
Sydney, Australia
x-Cart Version 4.0.12
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:22 AM.

   

 
X-Cart forums © 2001-2020