OpenContent

OpenContent - Structured Content Editing for DNN

Welcome to the OpenContent developer hub. You'll find comprehensive guides and documentation to help you start working with OpenContent as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    Guides

Multi language

Each field can be defined as a multi language field by using a specific field type in the options layout file.

Multi language fields are marked with the flag image.

Edit form

Edit form

Available field types

  • Multi lingual Text : mltext
  • Multi lingual CKeditor : mlckeditor
  • Multi lingual wysihtml : mlwysihtml
  • Multi lingual url : mlurl
  • Multi lingual Image : mlimage
  • Multi lingual File : mlfile

Example

"Title": {
	"type":"mltext"
},
"Summary": {
	"type":"mlwysihtml"
},

Localization of templates

1) Add your translations in localization files (Edit Template Files)

{
  "key1":"texte 1 in french",
  "key2":"texte 2 in french"
}
{
	"key1":"texte 1 in dutch",
  "key2":"texte 2 in dutch"
}

2) Add the texts to your template


{{Localization.key1}}

@Model.Localization.key1

Handlebars

The localization variable is on the root. So if you localize text in a each.
Don't forget to get the variable of the parent context {{..//Localization.key1}}