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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Changing the default search form in SS3


Go to End


822 Views

Avatar
Spaghetti

Community Member, 32 Posts

14 August 2012 at 3:44am

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.