Jump to content

Recommended Posts

Posted

Hello all,

I'm working on a travel directory site with locations of the region I live in in Thailand. This is a private fun learning project.

I would like to assign an icon to each location. ATM I have a simple text input field in my location template where I manually type in the fontawesome class name for the icon I want to assign which is a bit tedious.

So I am thinking about putting together an Inputfieldtype "Icon" which will surely aid in learning PW module development (and some more PHP along the way) :)

My concept so far:

-since people will hardly use all 500+ icons on their sites, I want to use an asm select in the field setup to search and select the icons that we want to use

-the asm select should show both, the icon and it's class name for each icon

-then use the selected icons to populate a select dropdown field as input field where the user can choose an icon.

Which inputfield module could I have a look at that is using asm select in the field setup?

I used import.io (which really is a fun tool) to create a data set with all fontawesome4.2.0 icon class names and their unicodes. If you're interested you can see the dataset here (you need to login/signup with them first).

I can export the dataset as JSON and use that to populate the asm select for the field setup.

These are my ideas so far. Yours are always welcome :)

  • Like 2
Posted

That would be super useful. This ideas was here on our super-long "do someday" list.

Maybe use this http://codeb.it/fonticonpicker/ library and make it an Inputfield. Then the field could for example return the selected icon name which could be used in the template to build the class for the icon(font, image,...).

  • Like 2
Posted

Interesting that you can compete with thai coders over there.

I live here 6 month a year and work mainly for European/American companies

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...