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.

All other Modules /

Discuss all other Modules here.

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

ItemSetField documentation, examples, etc.

Go to End

3 Posts   752 Views


Community Member, 22 Posts

17 December 2011 at 6:05am

I'm trying to use ItemSetField to assign roles to relationships between books and authors (e.g. illustrator, editor) and not having much luck with it.

I keep stumbling onto various cryptic error messages.

Does anyone know if there's better documentation and/or a few examples of how it's used somewhere? I'm only finding the one at github and one where someone used it to assign votes to players' work on teams.


Community Member, 22 Posts

26 December 2011 at 2:35pm

I never could get ItemSetField to work properly, and ended up removing it and assigning roles directly in MySQL. Luckily that's something I've needed for only about 2% of the records in that table, but still--you'd think something like this would actually be in core in SilverStripe. It can't be that uncommon.


Community Member, 244 Posts

26 December 2011 at 6:10pm

If you post information about your problems I'd be happy to have a look.