Welcome, Guest ( Login | Register )
Remember Me  
 
 
All times are UTC
 
 
File extensions need to be different for hyperlinks
 
Page 1 of 1 [ 4 posts ]
Author Message
Post subject: File extensions need to be different for hyperlinks
Posted: Wed Jan 27, 2010 2:26 am

Tenderfoot

Tenderfoot

Posts: 8

Online

When I generate the link directory, I set the file extensions for the generated files to be .tpl.php (as opposed to .php alone). This is because the e-commerce software I'm using places the content of pages into files with those extensions. Link Assistant generates these files with those extensions with no problem.

However, in the e-commerce software I'm using (which is a very well known one) for each .tpl.php file, there is a corresponding file with the exact same name but which only has the .php extension. These are the files that visitors are supposed to navigate to (not the .tpl.php files). This causes a problem in Link Assistant because it creates hyperlinks with the .tpl.php extension (obviously because that is how I configured it when making the template). Navigating to the .tpl.php version of the page gives a dead page though.

Other than manually changing the hyperlinks each time, is there a way to make it so that the generated pages of the link directory keep the .tpl.php extension but all created hyperlinks have the .php extension only?


Top
Post subject: Re: File extensions need to be different for hyperlinks
Posted: Fri Jan 29, 2010 5:22 pm

Site Admin

User avatar

Posts: 2961

Online

Unfortunately right now this can not be done with LinkAssistant. However there's a fast way to do that - for instance (on Windows) you can click Start -> Run > "cmd" and then type in the commander

cd YOUR_FOLDER_THE_DIRECTORY_WAS_SAVED_TO

and then when in that directory type

rename *.php *.tpl.php

All the files will be renamed at once.

_________________
Search Engine Optimization Software SEO PowerSuite

See a spammer? Click "Report this Post" (bottom right) and help keep our forum clean!


Top
Profile   |   Website
Post subject: Re: File extensions need to be different for hyperlinks
Posted: Sat Jan 30, 2010 12:03 am

Tenderfoot

Tenderfoot

Posts: 8

Online

Actually I just stuck to the easiest way: In the Template Server-Side Settings tab, I simply typed tpl. in front of the php so the extension now reads tpl.php

Link Assistant was capable of this after all. It'd be nice to have the option to add a custom extension in a future version though...


Top
Post subject: Re: File extensions need to be different for hyperlinks
Posted: Mon Feb 15, 2010 9:06 am

Site Admin

User avatar

Posts: 2961

Online

Glad that worked for you as well!

_________________
Search Engine Optimization Software SEO PowerSuite

See a spammer? Click "Report this Post" (bottom right) and help keep our forum clean!


Top
Profile   |   Website
Display topics from previous:  Sort by  
Page 1 of 1 [ 4 posts ]

 
 
All times are UTC
Jump to: