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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

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

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

FieldSet functions behaviour

Go to End

3 Posts   1946 Views


Google Summer of Code Hacker, 11 Posts

28 July 2007 at 2:00pm

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.


Community Member, 86 Posts

18 August 2007 at 12:35am

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.


Administrator, 690 Posts

21 August 2007 at 6:50pm

This should be fine...