Hi,

I am creating a new content type to store recipes using CCK. I have added the required fields but I am struggeling with creating a list of ingredients. I need to have a text field with the ingredient name and an Integer (or even another text field) for the yield like

5 egg
300ml milk
1cup flour

I tried creating a fieldgroup but I end up like this

5
300ml
1cup
add item

egg
milk
flour
add item

How do I put both fields in one line and glue them together?

I could try to fix the order via css but I also want to start with 5 entries and have the option to add more ingredients (via CCK's "unlimited" number of values in the global settings for the field). With fieldgroup I end up with two "add more" buttons - one under the yield group and one under the ingredient group.

Thanks for your help
Lars

P.S.: I have looked at the recipe module but it is not flexible enough

Comments

WorldFallz’s picture

atm the only options I know of are the http://drupal.org/project/flexifield module or using v3 of cck which includes a new combofield feature.

chipotle’s picture

.. for pointing out flexifield and CCK v3. I will see if they suit my needs. Looks like this use case is not as common as I thought.

Cheers
Lars

scottprive’s picture

Hi Lars,

Recipe module has picked up again. Please check out the latest dev nightly and try it out. If you have a suggestion, Issue or contribution please do.

-Scott