Creating a groceries list

Created on 23 May 2023, over 1 year ago
Updated 16 July 2024, 5 months ago

Problem/Motivation

I'd like generate a list of 7 random recipes (which is quite easy) and then have a list of ingredients to buy in order to make those 7 recipes. In other words, have groceries shopping list. Is it possible with this module?

πŸ’¬ Support request
Status

Fixed

Version

2.1

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium Axael

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Axael
  • πŸ‡ΊπŸ‡ΈUnited States dcam

    I'm sorry for not responding sooner. I can think of a couple of ways to potentially do this, but the usefulness of the list may vary. Both would depend on the Views module. You can build a view that just displays the list of ingredient entities. But that wouldn't contain any amounts from the recipes. You could build a view of recipe fields, then only display the ingredient field. You would have the amounts, but they wouldn't be sorted or combined from separate recipes.

  • πŸ‡§πŸ‡ͺBelgium Axael

    Thanks for your answer, @dcam.

    Actually, not combining the amounts of ingredients isn't really a big deal.

    I'll try to see what I can do by creating a View of recipe fields and display the ingredients field only.
    I think I already tried that but wasn't really sure about how to select only 7 random recipes, and not 7 ingredients.

  • πŸ‡ΊπŸ‡ΈUnited States dcam

    I've only used it once or twice, but I think that Views has a random sort. So do that, then set your pagination limit to 7.

  • Status changed to Fixed 6 months ago
  • πŸ‡ΊπŸ‡ΈUnited States dcam

    Closing since there was no further response.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024