Create
Available tags
ItemCreator:Edit.Form
Returns a script for the item creator form like this:
script type="text/javascript" src="/Admin/Content/JsLib/dw/ItemGroupVisibilityHandler.js"></script> <div class="item-edit-fields"> <div class="item-edit-field-group" id="General_fieldSet"> <div class="item-edit-field-group-name">General</div> <div class="item-edit-field-group-content "> <div class="item-edit-field items-clear"> <label class="item-edit-field-label">My Text Field <span class="required">*</span></label> <div class="item-edit-field-value"><input type="text" class="std item-field " name="My_Text_Field" maxlength="255" value="My default value" /> </div> </div> <div class="item-edit-field items-clear"> <label class="item-edit-field-label">My Item Field </label> <div class="item-edit-field-value"><div class="item-editor-box list-editor-box"> <ul class=""> <li class="item-clearfix"> <input type="checkbox" id="My_Item_Field_0" name="My_Item_Field" value="MyOption1" /> <label class="item-option-label" for="My_Item_Field_0">My Option 1</label> </li> <li class="item-clearfix"> <input type="checkbox" id="My_Item_Field_1" name="My_Item_Field" value="MyOption2" /> <label class="item-option-label" for="My_Item_Field_1">My Option 2</label> </li> </div> </div> </div> </div> </div> </div> <script type="text/javascript"> Dynamicweb.Items.GroupVisibilityRule.get_current().add({"VisibilityRules":[],"Groups":[{"GroupName":"General","IsVisible":true}],"Fields":[{"Id":"My_Text_Field","Group":"General"},{"Id":"My_Item_Field","Group":"General"}]}); </script>
@GetString("ItemCreator:Edit.Form")
ItemCreator:Edit.Form.Begin
Returns the form method start code like this:
<form method="post" id="ItemCreator_EditForm_16549" name="ItemCreator_EditForm_16549" 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=14869');return true};return s(this)">
@GetString("ItemCreator:Edit.Form.Begin")
ItemCreator:Edit.Form.End
Returns the end code for the item creator form.
@GetString("ItemCreator:Edit.Form.End")
ItemCreator:Edit.Item.[ItemFieldSystemName]
Returns the value of the item field.
@GetString("ItemCreator:Edit.Item.[ItemFieldSystemName]")
ItemCreator:Edit.Item.[ItemFieldSystemName].Control
Returns the code for the input field for the item type (or the div class if type is list).
@GetString("ItemCreator:Edit.Item.[ItemFieldSystemName].Control")
ItemCreator:Edit.Item.[ItemFieldSystemName].Description
Returns the description of the item field.
@GetString("ItemCreator:Edit.Item.[ItemFieldSystemName].Description")
ItemCreator:Edit.Item.[ItemFieldSystemName].EditorType
Returns the type of the item type.
@GetString("ItemCreator:Edit.Item.[ItemFieldSystemName].EditorType")
ItemCreator:Edit.Item.[ItemFieldSystemName].IsRequired
Returns True if the item field is marked as required.
@GetBoolean("ItemCreator:Edit.Item.[ItemFieldSystemName].IsRequired")
ItemCreator:Edit.Item.[ItemFieldSystemName].Name
Returns the name of the item type.
@GetString("ItemCreator:Edit.Item.[ItemFieldSystemName].Name")
ItemCreator:Edit.Item.[ItemFieldSystemName].SystemName
Returns the system name of the item field.
@GetString("ItemCreator:Edit.Item.[ItemFieldSystemName].SystemName")
ItemCreator:Edit.Item.[ItemFieldSystemName].Type
Returns the type of the item field.
@GetString("ItemCreator:Edit.Item.[ItemFieldSystemName].Type")
ItemCreator:Edit.Item.[ItemFieldSystemName].Value
Returns the value of the item field.
@GetString("ItemCreator:Edit.Item.[ItemFieldSystemName].Value")
ItemCreator:Edit.Item.[ItemSystemName]
Returns object defined with [ItemSystemName]
@GetString("ItemCreator:Edit.Item.[ItemSystemName]")
ItemCreator:Edit.Item.Field.First
Returns True if the item field is the first in the list.
@GetBoolean("ItemCreator:Edit.Item.Field.First")
ItemCreator:Edit.Item.Field.Last
Returns True if the item field is the last in the list.
@GetBoolean("ItemCreator:Edit.Item.Field.Last")
ItemCreator:Global.PagingPosition
Returns the page number of paging.
@GetObject("ItemCreator:Global.PagingPosition")
ItemCreator:Global.ParagraphId
Returns the value from the...
@GetObject("ItemCreator:Global.ParagraphId")
Available loops
ItemCreator:Edit.Item.[ItemFieldSystemName].Options
The ItemCreator:Edit.Item.[ItemFieldSystemName].Options
loop lets you display information about options of the item field with [FieldSystemName] system name..
@foreach (LoopItem item in GetLoop("ItemCreator:Edit.Item.[ItemFieldSystemName].Options")){ <p>@item.GetValue("TagName")</p> }
ItemCreator:Edit.Item.Fields
The ItemCreator:Edit.Item.Fields loop lets you display various information about the item fields.
@foreach (LoopItem item in GetLoop("ItemCreator:Edit.Item.Fields")){ <p>@item.GetValue("TagName")</p> }
ItemCreator:Edit.Item.Groups
The ItemCreator:Edit.Item.Groups
loop lets you display information about grroups defined for the item type..
@foreach (LoopItem item in GetLoop("ItemCreator:Edit.Item.Groups")){ <p>@item.GetValue("TagName")</p> }