Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Listings Manager (Realty Manager & Auto Manager):
template file extension change

 

 


webfoot
User

Sep 15, 2008, 4:27 PM

Post #1 of 3 (2384 views)
Shortcut
template file extension change Can't Post

Hello--

I am renaming basic template file extensions to .shtml since am using ssi.

Question is everytime I do a search it comes up;
Invalid template name: _search_query.html

How can I change this to - _search_query.shtml

----very newbie at this---
melinda
webfootstudios.com


Donna
Staff / Moderator


Sep 16, 2008, 9:33 AM

Post #2 of 3 (2289 views)
Shortcut
Re: [webfoot] template file extension change [In reply to] Can't Post

Hi Melinda,

In a word, you don't.

The templates themselves don't process any code, and the filenames are hard coded, so they need to stay the same.

However, you can set published files to have a different file extension by going into the Setup Options and changing the "Publish file extension" under Publish Settings. This will set any static file to be created with whatever file extension you set.

The catch here is that dynamic files already have a file extension, which is .cgi. That can't be changed, as Listings Manager is a CGI script that has to run whenever it runs a search. So, this means that you can't have SSI code on the search results page, or the dynamically generated search query page.

There's no way to get around the results page, but for the query page you can simply create a static page elsewhere with the Listings Manager form code on it. Just make sure that your <form> tag is something like this:

<form method=get action="/path/to/search.cgi">

...where the /path/to is the correct path to the search program.

Just about everything else can be copied & pasted from the _search_query.html template.

I hope this helps! Let me know if you have any other questions or concerns. :)

Donna

--
support@interactivetools.com


webfoot
User

Sep 16, 2008, 2:20 PM

Post #3 of 3 (2230 views)
Shortcut
Re: [Donna] template file extension change [In reply to] Can't Post

Carrrrumbbbaaa!!!

thanks - m