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.

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   1910 Views

Avatar
Jona

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?

Thanks,
Jona

Avatar
Jona

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. =)