Quantcast
Channel: Brian Pedersen's Sitecore and .NET Blog
Viewing all articles
Browse latest Browse all 285

Using emojis in Sitecore

$
0
0

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:

 

👻

Viewing all articles
Browse latest Browse all 285

Trending Articles