Closed (fixed)
Project:
Recipe
Version:
8.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 Aug 2018 at 23:48 UTC
Updated:
6 Apr 2020 at 04:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dcam commentedSo the best way would be to add a Boolean field to the ingredients to mark it as an allergen. Then override the field formatter template and conditionally apply a class to the name if the allergen field is checked.
The problem with that idea is that it would require the ingredient entity to be provided as a variable to the template's preprocessor. It isn't. So I'm going to add it so that people can do things like this.
Comment #3
dcam commentedComment #5
dcam commentedComment #6
dcam commentedComment #8
dcam commented