Posted by damienmckenna on December 17, 2008 at 1:45am
Is anyone aware of a module that would allow creation of widgets with multiple sub-fields?
Say you have a custom XML feed that contains a set of main records, e.g. store name. Then say each store can have an optional set of special offers, which has half a dozen fields (title, price, etc) - rather than setting up yet another content type and doing a messy add/remove for nodes and node references each time, it'd be much cleaner if I could just use one field with nested data. Are there any modules with a nifty UI for doing this, or do I ultimately need to create a some widgets to do it?
Thanks.

Comments
FYI what I'm currently doing
FYI what I'm currently doing is loading the fields as an array, then implode()ing it and base64_encode()ing it before storing it in a large plaintext text field - I noticed I had to base64_encode it otherwise would not explode() correctly afterwards. This is an inelegant solution as I can't e.g. query on fields within this aggregate dataset, which is something I need to be able to do.
solution rev 2
The final gimpy solution was to do a combination of the above implode()d array for data sets that didn't need individual fields to be queried, and just separating out the datasets into individual cck fields if they did need to be queried.
I think the D7 fields API system for linking multiple fields together (e.g. to link a measurement (7oz) and ingredient (milk) together to list ingredients in a recipe will solve the problem.