Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued Products: Article Manager 1 Add-ons:
How to get AM to use search_results.php?

 

 


ivar
User

Dec 16, 2005, 5:42 AM

Post #1 of 3 (1193 views)
Shortcut
How to get AM to use search_results.php? Can't Post

Hi, I'd like the "search_results.php" template to show the search results.

But when I add a hidden field (<input type="hidden" name="template" value="search_results.php">) to the template "advanced_search.html", and perform a search, then AM replies that "search_results.php" is not a registered file.

I'd like to keep the ".html" extension for article files.

Has anyone got a solution for this?

Thanks in advance!!

Ivar Johansson
Stockholm, Sweden


MikeB
Staff / Moderator


Dec 16, 2005, 5:02 PM

Post #2 of 3 (1178 views)
Shortcut
Re: [ivar] How to get AM to use search_results.php? [In reply to] Can't Post

Hi Ivar,

Thanks for the post! Smile

If you'd like to have your Advanced Search page use a specific template for it's results page then you'll actually just want to modify the hidden input field you're using.

Article Manager actually starts looking for it's search results template from the /templates/ folder so your hidden field should actually look like this:

<input type="hidden" name="template" value="search/search_results.php">

This is assuming that the file you'd like to use is in the /artman/templates/search/ directory. If you'd prefer to not change this hidden field you could just get onto your server and move search_results.php into the /templates/ folder.

Give this a try and let me know how it works for you. If you have any other questions or comments, just let me know! Smile

Cheers,
Mike Briggs - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.


ivar
User

Dec 22, 2005, 12:21 PM

Post #3 of 3 (1128 views)
Shortcut
Re: [MikeB] How to get AM to use search_results.php? [In reply to] Can't Post

Nice one Mike, it works like a charm! :-)

Thanks, and I wish you a Merry Christmas.

Ivar Johansson
Stockholm, Sweden

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4