Grouping PODS & Duplicating Fields?

0

I've got sort of a 2 part question about whats possible with Pods as I move over to Pods.

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

  1. 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?

asked Jul 6 '10 at 9:23

wesbos

56

add comment
enter at least 15 characters

3 Answers

0

Short answer: it's not built in.

Long answer: Scott is working on a Form API, which will eventually accomodate this.

answered Jul 7 '10 at 2:21

logikal16

249

add comment
enter at least 15 characters
0

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!

answered Jul 9 '10 at 7:53

wesbos

56

Yes, I also tried it, but had problems with Javascript. Could you please release it as a package? – pavelevap Jul 9 '10 at 10:21
add comment
enter at least 15 characters
0

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.

answered Jul 9 '10 at 12:14

clarinetlord

456

I was just trying out your package... great stuff! – logikal16 Jul 9 '10 at 2:41
add comment
enter at least 15 characters