backdrop-contrib / font_awesome

Include Font Awesome Icons via CSS classes in your Backdrop CMS website
https://backdropcms.org/project/font_awesome
GNU General Public License v2.0
2 stars 4 forks source link

Allow field formatter to work with list_text as well #9

Closed herbdool closed 3 years ago

herbdool commented 3 years ago

In my use case I want to preset a bunch of icons for a field, and not leave it up to the author to know what classes mean.

This is easily done with the list_text field type. I've got it working so I can provide a pr soon.

~By the way, it wasn't clear at first where this formatter would be available and how one should use it. I had to look in the code.~ (Oops, I missed that part of the readme).

herbdool commented 3 years ago

@BWPanda I've got a PR.

ghost commented 3 years ago

Thanks @herbdool! I made a small change to fix the line length in the README, but otherwise merged your PR as-is.