Clone of #2933851: Add support for masking to the Icon field for supporting layers
It would be awesome if we could easily use FA layering and masking. https://fontawesome.com/how-to-use/svg-with-js#masking and https://fontawesome.com/how-to-use/svg-with-js#layering
For masking, maybe add a checkbox to the field settings which adds a secondary autocomplete field to use as the mask?
For layers, maybe an option is to make the fontawesome field multi-value ( field storage -> Allowed number of values > 1 ), and if there is more than one field present, change the template to have the .fa-layers class on the wrapper?
Comment | File | Size | Author |
---|---|---|---|
#2 | add_support_layers_to_icon_field-2934509-2.patch | 4.95 KB | Daniel.Moberly |
Comments
Comment #2
Daniel.Moberly CreditAttribution: Daniel.Moberly commentedAttaching a patch to add layers support. Layers can be enabled through the Field Display settings for the icon field.
Comment #3
Daniel.Moberly CreditAttribution: Daniel.Moberly commentedComment #5
scottsawyerPatch works as advertised!! Thanks so much for quickly turning these around.
Comment #6
Daniel.Moberly CreditAttribution: Daniel.Moberly commented