Tell us what you are trying to do?
i designed a custom search and would like to show a custom numeric field in the star ratings format
i inserted the field into the template section of the custom search form (view)
[types field='ratings' format='FIELD_VALUE'][/types]
how do i get this to display the stars
thanks in advance
Thank you for contacting us here in the Support Forum
The legacy views of Toolset do not include a Star Rating system by default. Toolset Blocks on the other hand offers a Star Rating block. https://toolset.com/block-item/star-rating/
If you want to implement it for the legacy views, you will need to include some custom CSS to draw the stars based on the fields value, or maybe a Javascript library. Check this suggestion from Luo on this reply https://toolset.com/forums/topic/best-way-to-create-a-star-rating-field-in-types-with-graphic-output-in-views/#post-18059
You can also create a content template using Blocks that only includes the star rating block, and then include it using a shortcode inside of your current view or content template. Does it make sense?
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-153372
thanks for your quick reply.
i am a little confused about "legacy views" ... is there another way to do a custom search that gives you code access like the custom search?
should i be doing this using the views block editor?
i would like to have conditions in the template display - is this possible with the Legacy custom search?
i just spotted the conditions button on the template editor - i guess i could use font awesome to show the number of stars based on the numeric rating -
Yes, you can do that too. If you want to reuse it across multiples places, I'll suggest that you build it inside a content template, then you can include the content template wherever you want to have the star rating.