Common Elements
The following are found on ALL content items regardless of type
Idcomponents
<idcmpnt type=" " context=" " name=" " field=" " separator=" " format=" " ifEmpty=" " awareness=" " htmlencode=" " start=" " end=" " />
| Name | Description | Tag to retrieve it |
|---|---|---|
| Name | This is the WCM Name, in some cases it may be auto-generated. Must be unique in a given path. Same as Placeholder Name | <idcmpnt type="content" context="AutoFill" field="name" /> |
| Title | This is what is shown on the site to users and in WCM. Same as Placeholder Title | <idcmpnt type="content" context="AutoFill" field="title" /> |
| Description | This is a short summary of the item. In some cases it is set to be auto-generated from the body. | <idcmpnt type="content" context="AutoFill" field="description" /> |
| Authors | Originally this is set to the creator, but it can be changed and multiple added. | <idcmpnt type="content" context="AutoFill" field="authors" /> |
| Owners | Originally this is set to the creator, but it can be changed and multiple added. | <idcmpnt type="content" context="AutoFill" field="owners" /> |
| ID | The globally unique id assigned to the content. Same as Placeholder Idhum | <idcmpnt type="content" context="AutoFill" field="ID" /> |
| authtemplateid | not supported for 6.1.x and are only available in 7.x. | <idcmpnt type="content" context="AutoFill" field="authtemplateid" /> |
| authtemplatename | not supported for 6.1.x and are only available in 7.x. | <idcmpnt type="content" context="AutoFill" field="authtemplatename" /> |
| authtemplatetitle | not supported for 6.1.x and are only available in 7.x. | <idcmpnt type="content" context="AutoFill" field="authtemplatetitle" /> |
With Placeholders
The same information that you can get with IDcomponents can also ber retrieved with Placeholders.
<placeholder tag=" " htmlencode=" " start=" " end=" " />
| Name | Description | Tag to retrieve it |
|---|---|---|
| Name | Internal system name of the item. Same as idcmpnt Name | <placeholder tag="Name" /> |
| Title | This is the title of the article that users will see. Same as idcmpnt Title | <placeholder tag="Title" /> |
| Href | Just the href part of a link - to build your own link | <placeholder tag="Href" /> |
| noprefixhref | the href above with with no prefix | <placeholder tag="noprefixhref" /> |
| Namelink | This is a combination of the name and HREF tags. It assembles a complete link based on the name of the item being returned. | <placeholder tag="Namelink" /> |
| noprefixnamelink | This is a combination of the name and HREF tags. It assembles a complete link based on the name of the item being returned. | <placeholder tag="noprefixnamelink" /> |
| Titlelink | The title field returned as a full link. <a href=...>title</a> | <placeholder tag="Titlelink" /> |
| noprefixtitlelink | The title field returned as a full relative link. Without the domain. | <placeholder tag="noprefixtitlelink" /> |
| Sitepath | The path to the site /library/site/site areas This is similar to the HREF placeholder except that it only display the site path of an items URL. E.g., an HREF placeholder tag may give you: /ILWWCM/connect/metaorg/intranet/press+releases. Whereas the site path will give you: /metaorg/intranet/press+releases. |
<placeholder tag="Sitepath" /> |
| Idnum | The id of the item | <placeholder tag="Idnum" /> |
| Listnum | Displays a single column list of numbered links
|
<placeholder tag="Listnum" /> |
| Treenum | Displays a hierarchical numbered list: 1.0\\1.1\\1.2\\2.0 2.1 |
<placeholder tag="Treenum" /> |
| Paddedtreenum | Similar to Treenum, but the numbers are padded: 0001 00010001 00010002 000100020001 000100020002 |
<placeholder tag="Paddedtreenum" /> |
| Depth | Displays the depth of the currently processed node (in a navigator or menu) as a number. A top-level node has a depth of 1. | <placeholder tag="Depth" /> |
Workflow components
<workflowcmpnt type=" " context=" " name=" " field=" " separator=" " format=" " ifEmpty=" " awareness=" " start=" " end=" " />
| Name | Description | Tag to retrieve it |
|---|---|---|
| status | The status | <workflowcmpnt type="content" context="AutoFill" field="status" /> |
| workflow | The name of the workflow the item is in | <workflowcmpnt type="content" context="AutoFill" field="workflow" /> |
| currentstage | The current stage of the workflow - shows the name of the stage you gave it | <workflowcmpnt type="content" context="AutoFill" field="currentstage" /> |
| publishdate | The date the item was published | <workflowcmpnt type="content" context="AutoFill" field="publishdate" format="DATE_TIME_SHORT" /> |
| expirydate | The expiration date set by the author if provided | <workflowcmpnt type="content" context="AutoFill" field="expirydate" format="DATE_TIME_SHORT" /> |
| generaldateone | The general date 1 - this can be used for other purposes, like an arbitrary sort feild. This will return that date which is set by the author if provided | <workflowcmpnt type="content" context="AutoFill" field="generaldateone" format="DATE_TIME_SHORT" /> |
| generaldatetwo | The general date 2 - this can be used for other purposes, like an arbitrary sort feild. This will return that date which is set by the author if provided | <workflowcmpnt type="content" context="AutoFill" field="generaldatetwo" format="DATE_TIME_SHORT" /> |
| additionalviewers | Additional viewer that were assigned to the item | <workflowcmpnt type="content" context="AutoFill" field="additionalviewers" /> |
Profile (Keywords and Taxonomy Categories)
Displaying the profile details of an item
The Profile component tag is used to display the profiling details (either categories or keywords) of an item. This tag can be added to presentation templates, element designs and component designs.
<profilecmpnt type=" " context=" " name=" " field=" " format=" " separator=" " include=" " restrict=" " ifEmpty=" " htmlencode=" " start=" " end=" " />
| Name | Description | Tag to retrieve it |
|---|---|---|
| categories | Taxonomy Categories the author tagged the content with | <profilecmpnt field="categories" type="content" separator=", " context="AutoFill" /> |
| keywords | Free text keywords that were added to the content | <profilecmpnt field="keywords" type="content" separator=", " context="AutoFill" /> |
History information
<historycmpnt type=" " context=" " name=" " field=" " format=" " awareness=" " htmlencode=" " start=" " end=" " />
| Name | Description | Tag to retrieve it |
|---|---|---|
| lastmodified | Displays the last modified date and the last change message. | <historycmpnt type="content" context="AutoFill" field="lastmodified" /> |
| lastmodifieddate | Displays the last modified date. | <historycmpnt type="content" context="AutoFill" field="lastmodifieddate" format="DATE_TIME_SHORT" /> |
| creation | Displays the creation date. | <historycmpnt type="content" context="AutoFill" field="creation" format="DATE_TIME_SHORT" /> |
| lastmodifier | Displays the name of the user who last modified the item. | <historycmpnt type="content" context="AutoFill" field="lastmodifier" format="cn" /> |
| creator | Displays the name of the user who created the item. | <historycmpnt type="content" context="AutoFill" field="creator" format="cn" /> |
Root Path Information
<pathcmpnt type=" " start=" " end=" " />
| Name | Description | Tag to retrieve it |
|---|---|---|
| base | This returns the base section of a URL. For example, http://hostname:8080 |
<pathcmpnt type="base" /> |
| noprefixbase | The URL generated by the path component will be fully qualified when viewed through a portal. Use this instead of "base" when displaying content in rendering portlets. | <pathcmpnt type="noprefixbase" /> |
| context | This returns the context section of a URL. For example, /ILWWCM This should only be used when rendering content using a Servlet. | <pathcmpnt type="context /> |
| noprefixcontext | The URL generated by the path component will be fully qualified when viewed through a portal. Use this instead of "context" when displaying content in rendering portlets. | <pathcmpnt type="noprefixcontext" /> |
| servlet | This returns the Servlet path of a URL. For example, /ILWWCM/connect This should only be used when rendering content using a Servlet. | <pathcmpnt type="servlet" /> |
| prefix | The URL generated by the path component will be fully qualified when viewed through a portal. Use this setting to display the prefix value of Web content displayed in a rendering portlet. If no prefix exists then an empty string is returned. | <pathcmpnt type="prefix" /> |
Security
<securitycmpnt type=" " context=" " name=" " field=" " resolve=" " separator=" " format=" " ifEmpty=" " awareness=" " start=" " end=" " />
| Name | Description | Tag to retrieve it |
|---|---|---|
| user | Separated list of groups and users assigned to the user role (read only role) of the content, set the resolve parameter to: none Only users and groups selected in the access section of an item will be resolved. This is a combination of User, Workflow and Administrator defined access settings. Virtual users are not resolved. If the field parameter is used, only users and groups directly selected for a role type will be resolved. For example, a user assigned "contributor" access would not be resolved if field="user". virtual Only users and groups selected in the access section of an item, including virtual users, will be resolved. This is a combination of User, Workflow and Administrator defined access settings. If the field parameter is used, only users and groups directly selected for a role type will be resolved. For example, a user assigned "contributor" access would not be resolved if field="user". inherited All inherited users and groups plus users and groups selected in the access section of an item, including virtual users, will be resolved. This is a combination of Inherited, User, Workflow and Administrator defined access settings. If the field parameter is used, only users and groups that are either directly selected for a role type or that inherit a role type will be resolved. For example, a user assigned "contributor" access would not be resolved if field="user". inheritedonly Only inherited users and groups, including virtual users, will be resolved. If the field parameter is used, only users and groups that directly inherit a role type will be resolved. For example, a user that inherits "contributor" access would not be resolved if field="user". effective Only users and groups selected in the access section of an item, including virtual users, will be resolved. This is a combination of User, Workflow and Administrator defined access settings. If the field parameter is used, access roles are cascaded down so that users and groups assigned roles higher than the role selected using the field parameter will be resolved. For example, if field="user", contributors, editors and managers will also be resolved. all All inherited users and groups plus users and groups selected in the access section of an item, including virtual users, will be resolved. This is a combination of Inherited, User, Workflow and Administrator defined access settings. If the field parameter is used, access roles are cascaded down so that users and groups assigned roles higher than the role selected using the field parameter will be resolved. For example, if field="user", contributors, editors and managers will also be resolved. |
<securitycmpnt type="content" context="AutoFill" field="user" resolve="all" separator=", " format="cn" ifEmpty="no one" /> |
| contributor | Separated list of groups and users assigned to the contributor role | <securitycmpnt type="content" context="AutoFill" field="contributor" resolve="all" separator=", " format="cn" ifEmpty="no one" /> |
| editor | Separated list of groups and users assigned to the editor role | <securitycmpnt type="content" context="AutoFill" field="editor" resolve="all" separator=", " format="cn" ifEmpty="no one" /> |
| manager | Separated list of groups and users assigned to the manager role | <securitycmpnt type="content" context="AutoFill" field="manager" resolve="all" separator=", " format="cn" ifEmpty="no one" /> |
Menu Component Example
Menus to return this content should only use the elements surfaced through the placeholder tag where possible. Below is an Example:
Header
For Each
Footer
Formatting Rules
| Date Options | Example |
|---|---|
| format="DATE_SHORT" | 2/25/11 |
| format="DATE_MEDIUM" | Feb 25, 2011 |
| format="DATE_LONG" | February 25, 2011 |
| format="DATE_FULL" | Friday, February 25, 2011 |
| format="DATE_TIME_SHORT" | 2/25/11 1:36 PM |
| format="DATE_TIME_MEDIUM" | Feb 25, 2011 1:36:24 PM |
| format="DATE_TIME_LONG" | February 25, 2011 1:36:24 PM CST |
| format="DATE_TIME_FULL" | Friday, February 25, 2011 1:36:24 PM CT |
| format="TIME_SHORT" | 1:36 PM |
| format="TIME_MEDIUM" | 1:36:24 PM |
| format="TIME_LONG" | 1:36:24 PM CST |
| format="TIME_FULL" | 1:36:24 PM CT |
| format="relative" | 3 days ago |