Using emojis in Sitecore

Because people younger than me stopped communicating with words and instead adopted a modern version of hieroglyphs, emojis have become a part of every modern OS and Browser, and have even been adopted by the Unicode Consortium as a standard font.

This means that you can display and select emojis from Sitecore. See the following template:

Simple Template with one emoji field

Simple Template with one emoji field

I can base an item on this template, but I have to give the item a full ASCII name, as the emoji character is an invalid character. But I can go to Emojipedia, copy the emoji from here, and use that emoji in the Display name and in the text field of my item:

Items with emojis in the display name

Items with emojis in the display name

If I make a Droplink field, Sitecore will now display the emoji. A simple trick is to use the “style” field of the Droplink field to change the font size, making the emoji a little bigger:

Using the style tag to increase the emoji size

Using the style tag to increase the emoji size

So when your user sees the emoji, it is more clear:

Dropdown with emojis

Dropdown with emojis

MORE TO READ:

 

👻
Advertisements

About briancaos

Developer at Pentia A/S since 2003. Have developed Web Applications using Sitecore Since Sitecore 4.1.
This entry was posted in Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9 and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.