Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Changing HTML output of SS forms?

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

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

Page: 1
Go to End
Author Topic: 1208 Views
  • Jona
    Avatar
    Community Member
    19 Posts

    Changing HTML output of SS forms? Link to this post

    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

  • Jona
    Avatar
    Community Member
    19 Posts

    Re: Changing HTML output of SS forms? Link to this post

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

    1208 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.