- Issue created by @danflanagan8
- πΊπΈUnited States danflanagan8 St. Louis, US
I made the svg by hand and then used this cool tool to generate the background-url css: https://codepen.io/yoksel/details/MWKeKK
I started by trying to use the yml plugin like in the core file module, but that resulted in having to select the Crossword field more than once. That's because the yml only works if the field has a category and being in a category (even if there's only one option) results in having to select that field twice.
So I just removed the category and went with the hook approach, just like in the core link module.
-
danflanagan8 β
committed 024e1fb6 on 2.0.x
Issue #3470816: Crossword fields need a cool icon
-
danflanagan8 β
committed 024e1fb6 on 2.0.x
- Status changed to Fixed
3 months ago 7:46pm 28 August 2024 - πΊπΈUnited States danflanagan8 St. Louis, US
Thanks, buddy! Nice to hear from you. :)
Automatically closed - issue fixed for 2 weeks with no activity.
- πΊπΈUnited States danflanagan8 St. Louis, US
I wrote a blog post about the fun I had here
https://blog.horizontaldigital.com/add-icon-your-custom-field-type-drupa...
- π¨π¦Canada gnumatrix Vancouver, British Columbia
Good work! Having written a few blog posts myself, I can appreciate that while your solution looks straightforward and clearly explained, I'm sure it took some effort to get there. Nice to see the new icon and glad that Drupal has this kind of development happening.