Linking portlets
Fifferent rendering portlets can interact with each other....
- Put a WCM menu component in one rendering portlet
- Put a WCM content item in another portlet.
To have the content item change when a different link is clicked in the menu, link the two portlets.
Broadcasting links
Rendering portlets can be configured to broadcast their current...
- state
- context
...to...
- Rendering portlets on the same page
- Rendering portlets on other pages
Information broadcast will only be received by rendering portlets configured to receive this information.
Receiving links
A rendering portlet can receive information on the state or context of WCM content items or components ...
- Displayed within it
- Displayed within other rendering portlets that are "broadcasting"
Example 1 - configuring links for a single portlet
In this scenario a single portlet is configured to display a component, such as a menu, that contains links to content. When the link is clicked the component will be replaced by the content of the link. The rendering portlet will then take on the behavior of the displayed content. The originally displayed component will not be displayed again until a new portal session is started.
Portlet content Broadcast Links to: Receive Links from: Component None This portlet When adding a component to a rendering portlet, you can also select an alternative presentation template in the content view of the content section. When a link is clicked in the component, the content that is then displayed will use the alternate presentation template.
Example 2 - configuring links for a menu and content
In this scenario...
- one portlet would contain a WCM Menu
- another portlet would contain some WCM content
Links would need to be created between the two portlets to enable the displayed content to change when a different links in the menu were selected.
Portlet content Broadcast Links to: Receive Links from: Menu This Page None Content None Other Portlets
This Portlet
Example 3 - configuring links for a navigator and content
In this scenario...
Links would need to be created between the two portlets to enable the displayed Content to change when a different links in the navigator were selected. The navigator would also change to reflect the current state of the content being displayed.
- one portlet would contain a item views navigator
- another portlet would contain some WCM content
Portlet content Broadcast Links to: Receive Links from: Navigator This Page Other Portlets
This PortletContent This Page Other Portlets
This Portlet
Parent topic
Configure the local rendering portlet
Parent topic
Configure the remote rendering portlet