Portlet Entity and Window IDs
Portlet Entity ID
Format
Contains 3 parts, separated by an underscore.
<portlet-definition-id>_<layout-node-id>_<user-id>
Example:
- portlet definition ID: Â 88
- layout node ID: Â n149
- user ID: Â 52
- Formatted: Â 88_n149_52
Portlet Window ID
A portlet window ID can be thought of as a portlet entity ID with an optional portlet window instance ID added.
Format
With Portlet Window Instance ID
Contains 2 parts, separated by a period.
<portlet-entity-id>.<portlet-window-instance-id>
Example:
- portlet entity ID: Â 88_n149_52
- portlet window instance ID: Â 1
- Format: Â 88_n149_52.1
Without Portlet Window Instance ID
See Portlet Entity ID Format.
Stateless Portlet Windows
For stateless portlet windows, the portlet window-instance ID used is "tw".
Example portlet window ID: Â 5_ctf1_18.tw
Portlets with Delegate
For portlets that have a delegate portlet, the portlet entity ID will consist of a specially-formatted layout node ID.
Layout Node ID Format: Â <delegate-prefix>-<delegate-portlet-modified-window-id>
By definition, "delegate-prefix" is: Â dlg
The "delegate-portlet-modified-window-id" is the portlet window ID of the delegate portlet, with the underscores replaced by dashes.
- Example 1: Â 88_n149_52Â -->Â 88-n149-52
- Example 2:  5_ctf1-18.tw --> 5-ctf1-18.tw
Overall Example:
- delegate portlet window ID: Â 5_ctf1_18.tw
- portlet entity ID: Â 146_dlg-5-ctf1-18.tw_18
Questions
- How does channelPublishId relate to portletDefinitionId (are they the same)?
- How does subscribeId relate to layoutNodeId (are they the same)?