Sharing a portlet across multiple pages

When a portlet is added to a page, a portlet instance is created that stores information about that particular instance of the portlet, including information about customizations made to the portlet. You can share a portlet instance so that the exact same portlet (including all its customizations) can be used on another page. This means that when a user customizes the portlet instance on a page, those customizations are reflected on all other pages that include the shared portlet instance. This means that users do not have to make the same customizations to multiple instances of the same portlet.

For example, say you have two versions of the same page, a standard page for use on desktop machines, and a mobile page for use on mobile devices. You could share the portlets on the standard page and then add those shared portlet instances to the mobile page. That way, the user just needs to customize the portlets on the standard page, and those same customizations will automatically apply to the portlets on the mobile page.

NoteTo share a portlet, you must have at least one of the following privileges:

You can only share portlets; you cannot share items or tabs.

To share a single portlet:

  1. Go to the page that contains the portlet you want to share.

  2. Switch to Edit mode.

  3. Next to the portlet that you want to share, click .

  4. Select the Share Instance radio button, and click OK.

  5. In the confirmation page, click Yes.

    In Edit mode, the text Shared appears next to the portlet.

To share more than one portlet:

  1. Go to the page that contains the portlets you want to share.

  2. Switch to Edit mode.

  3. In the control panel at the top of the page, click Layout.

  4. Select the check box next to all the portlets that you want to share.

  5. Click Share.

To add a shared portlet instance to a page:

  1. Go to the page on which you want to work.

  2. Switch to Edit mode.

  3. In the region where you want to add the shared portlet instance, click .

  4. Drill down through the Portlet Repository to the page that contains shared portlet instance.

    Tip: By default, shared portlet instances are located in the Shared Instances page of the Portlet Repository.

  5. Click the portlet name.

    Tip: To see a preview of the shared portlet instance before adding it to your page, click Preview next to the portlet name.

  6. Click OK to return to the page.

Notes

Related topics

Adding a portlet to a page
Creating a standard page
Creating a mobile page