Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It should be possible to create a content type that handled things like the ingredients in recipe.module.
Comment | File | Size | Author |
---|---|---|---|
#1 | field_list.inc | 2.55 KB | harald.walker |
Comments
Comment #1
harald.walker CreditAttribution: harald.walker commentedI just created a list type so that I can replace the recipe module with a flexinode content type. Just place the attached file in your flexinode folder and give it a try.
It is based on the table field type and just as this one it starts with 8 list items and ads one extra row when you edit it again (e.g. after previewing).
Comment #2
Uwe Hermann CreditAttribution: Uwe Hermann commentedThis is great, thanks a lot! A really nice feature would be to allow any type (URL, mp3, etc.) as list items not just plain-text fields. How hard would it be to implement this?
Comment #3
harald.walker CreditAttribution: harald.walker commentedSo what you want is a list of links etc?
Well, you can't apply a field type to a field type. One could of course create a new field type or maybe customize this version. I have to work on my Quicktime field type first and create some themes. So if anyone wants to pick this up, you are welcome.
If you would like to output other field types as list, you could also try to solve it within your theme:
How to theme a Drupal flexinode
Comment #4
Bèr Kessels CreditAttribution: Bèr Kessels commentedComment #5
urbanlegend CreditAttribution: urbanlegend as a volunteer and at Acquia commentedGiven that this issue has not been updated in 9 years or more, I am closing this ticket as outdated (no longer needed and/or relevant). However, if anyone feels this represents an issue that is still being encountered in the current version of Drupal, please reopen and/or provide additional comments.