Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Download Tracker 1.0.7 — Minor update available for module download_tracker (1.0.7). Release: Directory2Block Slideshow 1.0.8 — Minor update available for module directory2block_slideshow (1.0.8). Release: Mautic Audiences 1.1.5 — Minor update available for module mautic_audiences (1.1.5). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

This is a field formatter for a selectlist with int values. Its use is to make some kind of ratingdisplay avaliable but without any processing! It just outputs an int select field as icons. You can use Fontawesome or any other iconservice using the same schema. The rating image can be ANY fontawesome icon. Apples, stars, circles you name it.

You can also use other icon libs. I for example use a custom one i generated with iconmoon because i dont want 4MB FA files to be loaded in the background.

How to use?

  1. Create a field list(int)
  2. Add selectable values like 1 2 3 4 5 6
  3. Chose the field formatter in the field settings to output and add your icon code
  4. Chose an icon from https://fontawesome.com/icons?d=gallery
  5. For example:
  6. Your selection is outputted with the icon!

I used it to rate books for my project about - EXAMPLE Audiobooks(Hörbücher) and output these ratings with stars.

Scroll down and you see some stars and dots: Example. In the backend that is just an in select field and i used views with my formatter to display it as icons. Do not be confused about interactive the rating at the top of the page. That is something different and can be done with the Rate or Fivestars Module

Why

I have already worked on Starrating in the D7 Version, but the D8 version has a dedicated own fieldttype. I see no use in creating a custom fielddtype so i used a core type that already exists.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Sep 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
2.0.3 Stable Apr 26, 2024
2.0.2 Stable Apr 24, 2024
2.0.1 Stable Sep 12, 2023