Page 1 of 1

Where is the Search module form template?

Posted: Sun Nov 14, 2010 2:36 pm
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)

Re: Where is the Search module form template?

Posted: Sun Nov 14, 2010 5:31 pm
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...

Re: Where is the Search module form template?

Posted: Sun Nov 14, 2010 8:28 pm
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 :)