Displaying font awesome icons as an custom attribute.

Permalink
Hey everyone. I'm using a page list block to display content from a list page of pages. I want to add Font Awesome icons as an custom attribute. So the user can either scroll through the list of icons or put in the Font Awesome icon number and it appears.

What is the best way to accomplish this?

stewblack23
 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi stewblack23,

The easiest way to accomplish this would be using a text page attribute where users could type in the name of the Font Awesome class.

To display a list of icons in a select drop-down, I believe you would need to create a custom attribute.
https://documentation.concrete5.org/developers/attributes/creating-c...

The core Feature block is an example of parsing the Font Awesome Less file to get a list of Font Awesome classes.
https://github.com/concrete5/concrete5/blob/develop/concrete/blocks/...
https://github.com/concrete5/concrete5/blob/develop/concrete/blocks/...