Grouping PODS & Duplicating Fields?
I've got sort of a 2 part question about whats possible with Pods as I move over to Pods.
- Is is possible to duplicate fields within a pod and then echo them out with a foreach statement?
Lets say I've got a CD being listed and it has anywhere from 1 to 15 tracks
I want to have a field where I can click a + button and it ads 1-15 fields for these track names and stores them in an array. Then when I move over to my template, I can run through all the tracks for that specific CD.
- Taking it a bit further, is it possible to add a 'group' of fields?
Back to the CD example. Say every time I add a track, I want to have a field accompanying it for the length of that song. So when I press + button, two fields are displayed. Is this something I can do with PODS UI?
3 Answers
Short answer: it's not built in.
Long answer: Scott is working on a Form API, which will eventually accomodate this.
I took a better look at display helpers and I see that this is totally doable with a little JS and PHP arrays
I love pods!
You could try the Inline PICK Form package that I wrote:
http://podscms.org/packages/inline-pick-form/
It's a fairly simple implementation of this idea, but I will be expanding it later, and it may lead you in the right direction.


