Restrict the movability of portlets on a page
You can define widths for containers. You can use this feature to restrict the possibility for users to move portlets on a page. The portal provides this functionality by a portlet placement filter or width filter.
This width filter compares width of a portlet to the width of a column container.
If the width of the portlet is larger than that of the container, the portlet cannot be moved to this container.
To use the width filter...
- Enable the filter in the portal configuration service. Set the property PortletPlacementFilterImpl to the following value com.ibm.wps.model.filters.portletplacement.impl.WidthFilterImpl.
- Set the maximum width for the portlet as required. Use the portlet for managing portlets and add the portlet parameter MAX_WIDTH with a positive numeric value. The value specifies pixels. Percent values are ignored by the width filter.
- Set the width for a column container as required. Use a positive numeric value. The value specifies pixels. Percent values are ignored by the width filter. To set the width for a column container, proceed by the following steps:
- Select the option for editing the page layout.
- Select the option for configuring the portlet or editing its shared settings.
- Check the box for showing the toggle link for showing or hiding the layout tools and click OK.
- Click the link for showing the layout tools.
- Click the double arrow for setting the column width,
- Type a numeric value into entry field. The value specifies pixels. Percent values are ignored by the width filter.
- Click OK. A message confirms that you have set the column container width.
Parent topic:
Manage portlets on a page
Related tasks
Set service configuration properties