Feature - Code
Paste Code that will be rendered in the page as code
Test
@{
// Check if the block grid item has settings
bool hasSettings = Model.Settings != null;
string colorLabel = null;
// If the block grid item has settings, get the background colour
if (hasSettings)
{
var backgroundColour = Model.Settings.Value<ColorPickerValueConverter.PickedColor>("featureSettingsColourPicker");
colorLabel = backgroundColour?.Label;
}
}
As an aside
RTE's can be added in asides like this one
Here we are showing what text looks like in an RTE in an aside.