Jump to:

2011 Posts in 1436 Topics by 620 members

Form Questions

SilverStripe Forums » Form Questions » search form like in the documentation site ?

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

Page: 1
Go to End
Author Topic: 716 Views
  • snaip
    Community Member
    180 Posts

    search form like in the documentation site ? Link to this post


    how to build search form similar to this http://doc.silverstripe.org/ ?

    typing some word and geting all matches topics (titles)

    my code is

       function SearchForm() {

          $searchText = isset($this->Query) ? $this->Query : 'Znajdź produkt';
          $fields = new FieldSet(
           new TextField("Search", "", $searchText)
          $actions = new FieldSet(
           new FormAction('results', 'szukaj')

           $form = new SearchForm($this, "SearchForm", $fields, $actions);
          return $form;

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.