Edit
Available tags
ItemPublisher:Edit.Form
Returns the form that is used to edit the item.
@GetString("ItemPublisher:Edit.Form")
ItemPublisher:Edit.Form.Begin
Returns the form method start code like this:
<form method="post" id="ItemPublisherFormSave" name="ItemPublisherFormSave" enctype="multipart/form-data" onsubmit="s=function(e){e.elements['FormCH1_h'].value='b83a4a2550903ed33169d71b8ad00920';e.elements['_sys_to_email'].value='';e.setAttribute('action', 'http://yourwebsite.dk/Default.aspx?ID=14863&PID=16545&cmd=edit&itemId=My_Item_Type:2');return true};return s(this)">
@GetString("ItemPublisher:Edit.Form.Begin")
ItemPublisher:Edit.Form.End
Returns the end code for the item publisher form.
@GetString("ItemPublisher:Edit.Form.End")
ItemPublisher:Global.PageId
Returns the ID
of the current page in the list.
@GetInteger("ItemPublisher:Global.PageId")
ItemPublisher:Global.PagingPosition
Returns the number of the current page according to paging position.
@GetInteger("ItemPublisher:Global.PagingPosition")
ItemPublisher:Global.ParagraphId
Returns the ID
of the paragraph.
@GetInteger("ItemPublisher:Global.ParagraphId")
ItemPublisher:Item.[ItemFieldSystemName]
Return the content of the item field.
@GetObject("ItemPublisher:Item.[ItemFieldSystemName]")
ItemPublisher:Item.[ItemFieldSystemName].Control
Returns the html code snippet for the input field for the item type field if Allow editing of items is enabled in Item Publisher module settings. Example of the value:
<input type="text" class="std item-field " name="[Item field system name]" maxlength="255" value="[Item field default text]" />
@GetString("ItemPublisher:Item.[ItemFieldSystemName].Control")
ItemPublisher:Item.[ItemFieldSystemName].IsRequired
Returns True
if the item field is marked as required.
@GetBoolean("ItemPublisher:Item.[ItemFieldSystemName].IsRequired")
ItemPublisher:Item.[ItemFieldSystemName].Name
Returns the name of the item field.
@GetString("ItemPublisher:Item.[ItemFieldSystemName].Name")
ItemPublisher:Item.[ItemFieldSystemName].SystemName
Returns the system name of the item field.
@GetString("ItemPublisher:Item.[ItemFieldSystemName].SystemName")
ItemPublisher:Item.[ItemFieldSystemName].Type
Returns the type of the item field.
@GetString("ItemPublisher:Item.[ItemFieldSystemName].Type")
ItemPublisher:Item.[ItemFieldSystemName].Value
Returns the content of the item field.
@GetString("ItemPublisher:Item.[ItemFieldSystemName].Value")
ItemPublisher:Item.CanEdit
Returns True
if "Allow editing of items" is enabled in paragraph settings for the module.
@GetBoolean("ItemPublisher:Item.CanEdit")
ItemPublisher:Item.DetailsUrl
Returns the url to the page with the details about the item, e.g. /Default.aspx?ID=14863&itemId=Address:129.
@GetString("ItemPublisher:Item.DetailsUrl")
ItemPublisher:Item.DetailsUrl.PID
Returns the url to the page with the details about the item in the following form:
/Default.aspx?ID=[Page ID]8&PID=[Paragraph ID]&itemId=[Item type system name]:[Item id]
@GetString("ItemPublisher:Item.DetailsUrl.PID")
ItemPublisher:Item.EditUrl
Returns the url to the page where you can edit the item in the following form:
/Default.aspx?ID=[Page ID]8&PID=[Paragraph ID]
&cmd=edit&itemId=[Item type system name]:[Item id]
@GetString("ItemPublisher:Item.EditUrl")
ItemPublisher:Item.Field.First
Returns True if the item field is the first in the list.
@GetBoolean("ItemPublisher:Item.Field.First")
ItemPublisher:Item.Field.Id
Returns the ID
of the item field.
@GetString("ItemPublisher:Item.Field.Id")
ItemPublisher:Item.Field.Last
Returns True if the item field is the last in the list.
@GetBoolean("ItemPublisher:Item.Field.Last")
ItemPublisher:Item.Field.PageId
Returns the ID
of the page where the item type with the item field is created.
@GetInteger("ItemPublisher:Item.Field.PageId")
ItemPublisher:Item.Fields.Any
Returns True if there exist any item fields with the selected item type and in the selected website/page.
@GetBoolean("ItemPublisher:Item.Fields.Any")
ItemPublisher:Item.PageName
Returns the name of the page that is based on the selected item type.
@GetString("ItemPublisher:Item.PageName")
ItemPublisher:Item.SystemName
Returns the system name of item type used by Item publisher.
@GetObject("ItemPublisher:Item.SystemName")
ItemPublisher:Item.Url
Returns the link to the page, that is based on item in the following form:
/Default.aspx?Id=[Current item based page id]
@GetGetString("ItemPublisher:Item.Url")
Available loops
ItemPublisher:Item.[ItemFieldSystemName].Options
The ItemPublisher:Item.[ItemFieldSystemName].Options
loop lets you display various information about field options.
@foreach (LoopItem item in GetLoop("ItemPublisher:Item.[ItemFieldSystemName].Options")){ <p>@item.GetValue("TagName")</p> }
ItemPublisher:Item.[ItemFieldSystemName].Options
The ItemPublisher:Item.[ItemFieldSystemName].Options
loop lets you display various information about the options for the fields of type List.
@foreach (LoopItem item in GetLoop("ItemPublisher:Item.[ItemFieldSystemName].Options")){ <p>@item.GetValue("TagName")</p> }
ItemPublisher:Item.[ItemFieldSystemName].Validators
The ItemPublisher:Item.[ItemFieldSystemName].Validators
loop lets you display various information about field valdiation error.
@foreach (LoopItem item in GetLoop("ItemPublisher:Item.[ItemFieldSystemName].Validators")){ <p>@item.GetValue("TagName")</p> }
ItemPublisher:Item.Fields
The ItemPublisher:Item.Fields
loop lets you display various information about the item fields.
@foreach (LoopItem item in GetLoop("ItemPublisher:Item.Fields")){ <p>@item.GetValue("TagName")</p> }
ItemPublisher:Item.Fields
The ItemPublisher:Item.Fields
loop lets you display various information about the item fields.
@foreach (LoopItem item in GetLoop("ItemPublisher:Item.Fields")){ <p>@item.GetValue("TagName")</p> }
ItemPublisher:Item.Groups
The ItemPublisher:Item.Groups
loop lets you display various information about groups of fields in item.
@foreach (LoopItem item in GetLoop("ItemPublisher:Item.Groups")){ <p>@item.GetValue("TagName")</p> }
ItemPublisher:Item.Groups
The ItemPublisher:Item.Groups
loop lets you display various information about the groups in the item type.
@foreach (LoopItem item in GetLoop("ItemPublisher:Item.Groups")){ <p>@item.GetValue("TagName")</p> }