Glass Mapper – Edit Frame for all fields dynamically

Today I created a rendering component which has around 10 fields but the whole component is not editable in Experience Editor. I decided to use Edit Frame from Glass Mapper. The BeginEditFrame wants all the editable fields as a parameter. But for around 10 fields not that comfortable.

The following code snippet creates an Edit Frame only with 1 field.

@using Glass.Mapper.Sc.Web.Mvc
@model IYourModel
@using (@Html.Glass().BeginEditFrame(Model, "Edit The Component", x => x.Image))
{
// your code
}

Continue reading “Glass Mapper – Edit Frame for all fields dynamically”

Sitecore Name Value List field with special characters

The question came up and wrote it to Sitecore StackExchange. Thank you @jammykam for your answer.

The default Sitecore Name Value List field has an annoying issue. It does not allow to use special characters like ‘-‘ for the key. I just digged into the Sitecore.Kernel library and I found a regular expression validation which is hardcoded.

Let’s overwrite this class make it more flexible. The main issue with the implementation that they don’t encode/decode the URI.

Continue reading “Sitecore Name Value List field with special characters”

Sitecore 8.1 – Change scheduled task checking frequency

I couldn’t find any documentation on the internet about this so here is how you can change the frequency of checking the scheduled task.

As you can see here in the config file you can do it separately for “core” and “master” database. On dev machines always needed to change it from the default 10 minutes to lower, e.g. 1 minute.

Continue reading “Sitecore 8.1 – Change scheduled task checking frequency”