Property editor for Umbraco 7.
Editing the data type:
Using the data type in Umbraco:
Iconator is a custom data type that allows an editor to select a class for a custom icon from a CSS file, but in a visual way. The class name is saved into the property value which can then be used in your view. This is useful because font files can be used for icons rather than selecting an image.
This is a fork of https://github.com/marcemarc/monosnow.umbraco.uCssClassNameDropdown, partially redesigned to work seamlessly in Umbraco 7.
- Umbraco 7.4 or later (or use the umbraco7.0 branch)
Umbraco uses icon classes of style "icon-{{class-name}}". If you name one of your icon classes the same as any of the icons in Umbraco, your icon will replace them.
You can watch a video which shows installation and setup: https://www.youtube.com/watch?v=5AIyf7w47K0
In Visual Studio, open up the Package Manager Console and type the following:
install-package Umbraco.Iconator <project name>
Umbraco has a package manager built into it.
- Navigate to the Developer section of Umbraco
- Click on the packages item in the Tree
- Search for Iconator, click on the relevent result
- Click install
If you prefer, you can upload a ZIP into Umbraco and it will install the package for you.
- Head to https://our.umbraco.org/projects/backoffice-extensions/iconator/
- Download the package
- Navigation to the Developer section of Umbraco
- Click on the packages item in the Tree
- Upload the ZIP and install
- Download a ZIP of this repository
- Unzip the ZIP
- Navigate to /content/App_Plugins/
- Copy the Iconator folder to the /App_Plugins/ folder of your Umbraco website
You have to manually create the data type in Umbraco yourself.
- In the Umbraco backoffice, navigate to the Developer section
- Start creating a new Data Type the the "Property editor" set to "Iconator"
- Input the path to your stylesheet
- Input a class name regex
- (optional) Input any other fields
- Set the name of this data type, "Icon Picker" should do
- Save!
- Add this new data type to a document type in the settings section
- Done-zo!
If you have any suggestions on how to make this package better, please use the issue tracker or make amendments to the code. I'll try my best to keep this repo up to date.
Head to https://our.umbraco.org/projects/backoffice-extensions/iconator/ and report compatibility with any Umbraco versions you have tested on.
Vote for the package if you like it. ;)
If you find any bugs, please use the issue tracker on GitHub to report it!
Feel free to contribute to this package by making changes to any of the files in the repository.
You can optionally use Gulp when making changes to the files. The Gulp file is setup to move the files from the ./content/ folder to your Umbraco installation. Just update the config.json file with a path to your Umbraco installation and run gulp. Any changes you make will be copied to your installation.