Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alter Database Field to Allow a Recipe to Have More Than One Category #1008

Open
zombiewoof opened this issue Oct 13, 2020 · 4 comments
Open

Comments

@zombiewoof
Copy link

If the database, that is used, allows something like MySQL 'LIKE', it would be nice to be able to associate more than one category with a recipe. For example, I have a Chicken Soup recipe that is prepared in a crock pot. It would be convenient to have the recipe listed in Poultry, Soups, and Crock Pot instead of having to pick just one category.

@thinkle
Copy link
Owner

thinkle commented Oct 13, 2020 via email

@zombiewoof
Copy link
Author

Maybe clicking category input could open a window, with the categories listed and a checkbox for each one? Already chosen category(ies) already checked.

@zombiewoof
Copy link
Author

I have worked up a screen, in PHP, to illustrate the window I mentioned in my earlier comment. I realize that this probably can't be done with a widget, but shouldn't be too complicated to implement.

The 'New Category' input could be allowed to accept the currently used CSV-type input to add more than one new category or add categories to the chosen ones. Parsing of the input should check against the existing list of categories to prevent duplication - found item(s) should be added to the chosen categories for this recipe, as would any new category(ies) added.

Screenshot from 2020-11-02 16-42-17

@thinkle
Copy link
Owner

thinkle commented Nov 2, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants