Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Changing the default search form in SS3


Reply

363 Views

Avatar
Spaghetti

14 August 2012 at 3:44am Community Member, 31 Posts

I want to change the text on the search button ('Go') which is created in ContentControllerSearchExtension.php in the function SearchForm().

My question is how do I override this in the code in mysite/Page.php (and I also have a sub-page type), rather than recompiling the whole cms - is that possible or am I missing a trick (is there a smarter way to do this)?

Thanks.