Paragraphs
Tags, loops and code examples available to the Dynamicweb paragraph Item type.
Available tags
Item.[FieldSystemName]
Returns the value from the item field that is filled on a page/paragraph.
@GetString("Item.[FieldSystemName]")
Item.[FieldSystemName].IsRequired
Returns True if the item field is marked as required - otherwise False.
@GetBoolean("Item.[FieldSystemName].IsRequired")
Item.[FieldSystemName].Name
Returns the system name of the item field.
@GetString("Item.[FieldSystemName].Name")
Item.[FieldSystemName].SystemName
Returns the system name of the item type.
@GetString("Item.[FieldSystemName].SystemName")
Item.[FieldSystemName].Type
Returns the type of the item field, e.g. File, Text.
@GetString("Item.[FieldSystemName].Type")
Item.[FieldSystemName].Value
Returns the value from the item field that is filled on a page/paragraph.
@GetString("Item.[FieldSystemName].Value")
Item.Field.First
Returns a value if the item field is the first in the list.
@GetBoolean("Item.Field.First")
Item.Field.Last
Returns a value if the item field is the last in the list.
@GetBoolean("Item.Field.Last")
Item.Image.FocalPointParameters
Returns "&x=12&y=-12"
@GetString("Item.Image.FocalPointParameters")
Item.Image.ImageHasFocalPoint
Returns True or False if x or y <>0
@GetBoolean("Item.Image.ImageHasFocalPoint")
Item.ParagraphHeader
Returns the name of the paragraph with the item type.
@GetString("Item.ParagraphHeader")
Item.ParagraphName
Returns the name of the page that uses the item type.
@GetString("Item.ParagraphName")
ParagraphEditInBackendUrl
Returns URL to edit the paragraph in backend.
@GetString("ParagraphEditInBackendUrl")
ParagraphImage
Returns the vignette image for the current paragraph.
@GetString("ParagraphImage")
ParagraphImage.FocalPointParameters
Returns "&x=12&y=-12"
@GetString("ParagraphImage.FocalPointParameters")
ParagraphImage.ImageHasFocalPoint
Returns True or False if x or y <>0
@GetBoolean("ParagraphImage.ImageHasFocalPoint")
ParagraphImageCaption
Returns the image caption for the current paragraph.
@GetString("ParagraphImageCaption")
ParagraphImageClean
Returns the path for the vignette image for the current paragraph.
@GetString("ParagraphImageClean")
ParagraphModule
Returns the output from the module attached to the current paragraph.
@GetString("ParagraphModule")
Available loops
Item.[FieldSystemName].ListOfFiles
The Item.[FieldSystemName].ListOfFiles
loop lists all files that are selected with the Folder item type and lets you display various information about the files.
@foreach (LoopItem item in GetLoop("Item.[FieldSystemName].ListOfFiles")){ <p>@item.GetValue("TagName")</p> }
Item.[FieldSystemName].Options
The Item.[FieldSystemName].Options
loop lets you display available information about options for item filed has [FieldSystemName] system name. .
@foreach (LoopItem item in GetLoop("Item.[FieldSystemName].Options")){ <p>@item.GetValue("TagName")</p> }
Item.[FieldSystemName].Validators
The Item.[FieldSystemName].Validators
loop lets you display various information about field valdiation error.
@foreach (LoopItem item in GetLoop("Item.[FieldSystemName].Validators")){ <p>@item.GetValue("TagName")</p> }
Item.Fields
The Item.Fields
loop lets you display various information about items fields for the page/paragraph.
@foreach (LoopItem item in GetLoop("Item.Fields")){ <p>@item.GetValue("TagName")</p> }
Item.Groups
The Item.Groups
loop lets you display various information about items field group for the page/paragraph.
@foreach (LoopItem item in GetLoop("Item.Groups")){ <p>@item.GetValue("TagName")</p> }