Portal with Contribution/Delivery Content Repositories at the same time

WebCenter Portal can be configured to be connected with multiple Content Repositories.

 

Content Presenter using one of the Content Repositories
Content Presenter using one of the Content Repositories configured dynamically

 

This post is a tip about for the following scenario:

"Content Presenter has to show content from the Contribution Repository to Contributors and the Delivery Content for the rest of the users".

 

 

WebCenter Portal with multiple Content Repositories
WebCenter Portal with multiple Content Repositories

 

The ideal scenario is to separate Portal-Content contribution from Portal-Content delivery. This post explains how to do it with just one Portal instance.

How can I make Content Presenter working with two Content Repositories at the same time based on user Roles?

First of all there are some points to remember about Content Presenter:

  • Two ways to configure it:
    • Configuration Dialog: Is the way for end users to configure in Runtime the content to be shown.

 

Content Presenter Configuration Dialog
Content Presenter Configuration Dialog

 

    • Configuration Properties: Is the way to follow in Design or where the configuration requires complex EL Expressions

 

Content Presenter Configuration Properties
Content Presenter Configuration Properties

 

  • TIP: If the Content Presenter is configured via Configuration Properties then any change in Configuration Dialog is override by the Properties one.

 

 

Configuration Dialog vs Configuration Properties
Configuration Dialog vs Configuration Properties

 

Basically the solutions consists in having a Page Parameter that calculates the Content Repository to be used by Content Presenter.

 

 

Page Properties calculating the Content Repository
Page Properties calculating the Content Repository

 

Finally configure Content Presenter using Configuration Properties in order to use the calculated repository

 

 

Configuration Properties using dynamic Content Repository
Configuration Properties using dynamic Content Repository

 

TIP: The Page Parameter can be configured in a Page Style and then each Page created in Runtime will have the current repository

References:

  Whitepaper. Migration to WebCenter Sites