Add Item
Smartsite 7 - ...
Action parameters
Name | Required | Description |
---|---|---|
parent | No | Allows you to specify the parent, under which the item will be added. If this parameter hasn't been specified, the Add Item action will start the Content Tree as subaction, so the user will be able to select the parent. |
contenttype | No | Allows you to specify which contenttype should be used for the new item. If this parameter hasn't been specified, the Add Item action will start the ContentTypes Library action, so the user will be able to select the contenttype. |
path | No | Allows you to specify a "path" of parent items. |
pathurl | No | Allows you to specify a url, which will be used to resolve the path parameter. |
usedefaultcontenttype | No | Allows you to specify that the default contenttype of the parent should be used when creating a new item. |
startfolder | No | Allows you to specify the start folder which should be used within the Content Tree subaction. |
Path parameter
Using the path parameter, you can specify a path of parent items which should be used and/or created when needed.
Example: CF:{year}|PWP:{month_nl}
The notation is: [Contenttype code:]title_segment. The pipe ('|') character is used as seperator between different path elements, each path element representing an item within the cms hierarchy.
The contenttype code is optional, and will resolve to CF (CMS folder) when not specified.
The title segment is constructed using one or more placeholders, which are described in the table below.
Name | Description |
---|---|
year | Resolves to the year of the current date/time. |
month | Resolves to the month (numeric value) of the current date/time. |
day | Resolves to the day (numeric value) of the current date/time. |
hour | Resolves to the number of hours of the current date/time. |
minute | Resolves to the number of minutes of the current date/time. |
second | Resolves to the number of seconds of the current date/time. |
weekday | Resolves to the day of the week (numeric value) of the current date/time. |
month_en | Resolves to the month name (in English) of the current date/time. |
month_nl | Resolves to the month name (in Dutch) of the current date/time. |
weekday_en | Resolves to the name of the day of the week (in English) of the current date/time. |
weekday_nl | Resolves to the name of the day of the week (in Dutch) of the current date/time. |
contenttype | Resolves to the contenttype's number of the item being added. |
contenttypecode | Resolves to the contenttype's code of the item being added. |
contenttypename | Resolves to the contenttype's name of the item being added. |
userid | Resolves to the user's id. |
loginname | Resolves to the user's login name. |
userfullname | Resolves to the user's full name. |