Jump to:

23364 Posts in 18125 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » Item filtering

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

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

Page: 1
Go to End
Author Topic: 133 Views
  • isolated
    Avatar
    Community Member
    28 Posts

    Item filtering Link to this post

    Hi,

    was playing with ss forms and got into a problem, that after form submission i dont get expected items.

    In the object i added additional field dropdownfield with 3 values.

    As well created three new PageType extends Page, where pagetype has one extra field (one out of the three dropdownfield).

    The form consist of the field type and submit button. After submission, i perform PageType filtering by selecting matching records etc extraField = 1.
    But at this point, when i try to return data from the form, i fail.

  • isolated
    Avatar
    Community Member
    28 Posts

    Re: Item filtering Link to this post

    To extend what i have in the form

    return $this->customise(array(
    'Results' => $pages
    ))->renderWith(array('Page'));

    133 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.