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, biapar, Willr, Ingo, swaiba, simon_w

ItemSetField documentation, examples, etc.


Reply

3 Posts   430 Views

Avatar
johnofjack

17 December 2011 at 6:05am Community Member, 22 Posts

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.

Avatar
johnofjack

26 December 2011 at 2:35pm Community Member, 22 Posts

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.

Avatar
ajshort

26 December 2011 at 6:10pm Community Member, 244 Posts

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