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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

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

Changing HTML output of SS forms?

Go to End

2 Posts   1593 Views


Community Member, 19 Posts

12 October 2008 at 1:08pm

Hi guys,

I used the search tutorial on the site to create a site search for my SS web site, but I wanted to change the HTML that SS outputs to better fit my design. What file do I need to edit (presumably somewhere in /sapphire/) in order to make this HTML change?



Community Member, 19 Posts

13 October 2008 at 2:34pm

Figured it out. SS does everything in OOP (to an extent wisely), so the pieces are scattered. Creating protected class variables for the SearchForm.php file in /sapphire/search/, then accessing the protected variables in /sapphire/forms/FormAction.php and /sapphire/forms/Form.php worked.

It's kind of a hassle when you want to exercise more control over the HTML output of SS sometimes. =)