This is a library of custom editors for EPiServer.
Install NuGet package (use Geta NuGet feed).
Install-Package Geta.EPi.Cms.UI
Adds ability to search and browse through all Font Awesome icons. Currently based on version 4.3.0.
[FontAwesomeSelection]
[UIHint(GetaUIHint.FontAwesomeIcon)]
public virtual string IconCssClass { get; set; }
[KeyValueList]
[UIHint(GetaUIHint.KeyValueList)]
public virtual IEnumerable<KeyValuePair<string, string>> KeyValues { get; set; }
Default display template shipped in package:
@model IEnumerable<KeyValuePair<string, string>>
@if (Model != null && Model.Any())
{
<dl class="@ViewData["ListCssClass"]">
@foreach (KeyValuePair<string, string> item in Model)
{
<dt>@item.Key</dt>
<dd>@item.Value</dd>
}
</dl>
}
Editor to search for a Place in Google maps.
[GooglePlaceSelection]
public virtual GooglePlace MyPlace { get; set; }
A basic display template is also installed at ~/Views/Shared/DisplayTemplates/GooglePlace.cshtml
This is the same one that's included in Alloy templates package.
[StringList]
[UIHint(GetaUIHint.StringList)]
public virtual string[] StringList { get; set; }