Where is the Search module form template?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
rubberglover
Forum Members
Forum Members
Posts: 53
Joined: Mon Jul 23, 2007 5:30 pm

Where is the Search module form template?

Post by rubberglover »

Hi all,

I have a design to code up into a CMSMS site and the standard search form template will need to be changed... I've had a dig around in the Search module and found the 'GetSearchHtmlTemplate()' function in the Search.module.php file. It returns the HTML template for the search form, so I figured that changing this code would do the trick, but it still seems to be pulling in the old template from somewhere.

There's a file called 'action.updatesearchtemplate.php' which seems to contain some code to do a permission check before running the 'GetSearchHtmlTemplate()' function... do I need to run this action file somehow in order to update the search template? I'm a little lost!

Many thanks
(CMSMS v1.9)
Last edited by rubberglover on Sun Nov 14, 2010 2:38 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Where is the Search module form template?

Post by Dr.CSS »

You should never do anything to the actual PHP files, I would change them all back then go to the backend/admin > extensions > search and change the template there like you always should...
rubberglover
Forum Members
Forum Members
Posts: 53
Joined: Mon Jul 23, 2007 5:30 pm

Re: Where is the Search module form template?

Post by rubberglover »

Jeesh, feel a little stupid, had not even noticed the search module options in the extensions menu - not sure how I missed it to be honest! I was thinking it would make life difficult for future upgrades, thanks for pointing me in the right direction :)
Post Reply

Return to “CMSMS Core”