I created a Block almost identical to Banner but changed its template to multiculture as shown below.
But it generates an error when saving the block after adding it to a page.
Error message on browser: An error has occurred.",“exceptionMessage”:"Field with name ‘entryCards’ need culture information
The blockfielddefinition:
new FieldDefinition(BlockFieldNameConstants.GcEntryCards, SystemFieldTypeConstants.MultiField)
{
MultiCulture = true,
Localizations =
{
[“sv-SE”] = {Name = “Cards”},
[“ru-RU”] = {Name = “Cards”},
[“fi-FI”] = {Name = “Cards”},
[“en-US”] = {Name = “Cards”}
},
Option = new MultiFieldOption
{
IsArray = true,
Fields = new List()
{
BlockFieldNameConstants.GcBlockLinkText,
BlockFieldNameConstants.GcBlockImagePointer,
BlockFieldNameConstants.GcLinkToPage
}
}
}
Litium version: 7
Thanks in advanced