Fork me on GitHub

Video Demo

Prevalue Editor Settings

The data-type has the following configuration options:

Prevalue Editor

  • Columns
    • Show Column Labels?
    • Labels: Enter a label for each column; you may also use dictionary item syntax (e.g. [#dictionaryItem]). (Optional - blank labels are acceptable)
  • Rows
    • Minimum: Minimum number of rows to display.
    • Maximum: Maximum number of rows to display. Use -1 for unlimited rows.

Content Editor

Content Editor

Example XML

		<value>foo bar</value>

Example Razor (DynamicNode)

With the Razor model-binding enabled, the property will automatically be converted to the appropriate .NET object type.
In the case of TextstringArray, the object type is a List<string[]> (e.g. a list of string arrays):

@inherits umbraco.MacroEngines.DynamicNodeContext
	@foreach (string[] row in Model.textstringArrayPropertyAlias)
			@foreach (var cell in row)

Example XSLT

<xsl:for-each select="*/TextstringArray/values">
	<strong><xsl:value-of select="value[1]" /></strong>
	<xsl:value-of select="value[2]" />