Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » FieldSet functions behaviour

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: 1636 Views
  • Bernat
    Avatar
    Google Summer of Code Hacker
    11 Posts

    FieldSet functions behaviour Link to this post

    I've found that the functions in FieldSet that manage which fields are in the fieldset have a variable behavior: some are recursive (the field can be "buried" in a composite field, e.g removeByName, addFieldToTab) and some others aren't (e.g insertBefore/After). I need these ones to be recursive and i've changed my local code to fit this, but wondered if there is any special reason to avoid recursion here.

  • Matt
    Avatar
    Core Development Team
    84 Posts

    Re: FieldSet functions behaviour Link to this post

    Bernat: I've flicked Sam an email for his opinion on this, but as far as I believe, there's no reason that these don't recursively look inside composite field types for more fields.

    Sam may be able to shed more light on this.

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: FieldSet functions behaviour Link to this post

    This should be fine...

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