The content presenter is a very powerful tool if your portal is content driven. The Content Presenter allows you to show content from your content server in your portal. You can use predefined templates or create your own ones.
WebCenter 11g PS3 has been a big improvement for the Content Presenter. It is easier in use and more versatile. You can easily select content based upon a folder or query, choose a template and preview the result.
Before you can use we need to create a connection to the Content Server. This can be done in JDeveloper by selecting Content Repository Connection in the Connection section from the New Gallery:
In the Create Content Repository Connection popup you need to specify a name for the connection.
Select Oracle Content Server from Repository Type.
Make sure you have select Set as primary Connection for Document Services. This is important when you use document services taskflows. They will always use the primary connection by default.
Specify the parameters that matches your content server. In my case they are:
RIDC Socket type: socket
Server Host Name: localhost
Content Server Listener Port: 4444
From UCM 11g on you need to enable the Content Server Listener Port. If you don't know how to do this, I have explained this in my paper about WebCenter and UCM integration on page 5 and 6: http://www.yonaweb.be/sites/default/files/webcenterUCMintegration_0.pdf
Press OK to create the connection.
You can now run your portal and edit some page for example the home page. Did you know, when logged in and you have sufficient rights to edit a page, you have a shortcut for editing the page without needing to go to the resource manager. You can just prest CTRL+SHIFT+E. This will bring you directly in edit mode.
In the Content Management folder of the resource catalog you will find the Content Presenter. By pressing the Add button you can add it to your page:
You will notice that the content presenter shows a message saying you need to configure the component before it can show some content.
You can configure the Content Presenter by clicking the Edit button in the toolbar. This will open the Content Presenter Configuration popup:
This is the core window in the content presenter. It consists out of 3 tabs:
In the Content tab you can select the type of content:
In this example I have selected a folder from the content server:
When you select a folder or item you will also see some information about that file or folder as shown in the above image.
In the second tab we need to select the template. Based upon the content source from the first tab, you will have other templates in the second tab. There are two types of templates being single item templates and multiple items template.
Because I have selected a folder, I will see the multiple item templates:
I will select Carousel View because the folder I have selected contains only images. By selecting this template, the images will be shown in a carousel which is a nice view.
As you can see you have lots of templates. When you select a template you will get a description telling you what the template does.
When we press OK, the settings are stored and applied to the content presenter. We know see the content in our portal:
This is basically how the content presenter works. It is a nice taskflow which allows lots of flexibility. You can also create your own templates in case the out of the box templates do not meet your requirements.
Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer
Comments
Nice article
Content presenter are so handy, when you are going to display News-like portlet for showing some meta-data from UCM in a News like view.
I made another template also for Dynamic Conversion, which displays the content of document converted into HTML, however it's not perfect yet as I have to display it in iframe, and you know the iframe and height issues.
Do you have a recommendation for that!
WCM
I'm not sure about dynamic conversion. I don't think you can access this by using the content presenter. You can however create a fragment in Site Studio and use WCM to display this in WebCenter.
I haven't played that much with dynamic convertion but i am planning to do so in the future (Perhaps in a few months).
I can't access, but I can use the service by calling it
Yes true, It's not as powerful as the fragment in site studio, but as you know you can have more webcenter like experience whenever I'm having it, of choosing the files desired and being dynamically presented and can be viewed also.
What I've done is construct the url of Dynamic Converter service in the inline frame and passed the dId and the magic happened :)
The only drawback is the height issue in inline frames (you know the ultimate problem of iframes)
dynamic conversion Fragmnet
hello ,
is there any update on dynamic conversion Fragment ??
Multilanguage Content Presenter
I have tricky problem . I would like to use a content presenter with a multi language portal. But i don't know how to do it. the contributor selects the content id in english but how it works in french,spanish or german language ? i have to relate the same type of contents between them ?
Multilanguage
Do you have any update concerning this question?
It's very tricky and hard to
It's very tricky and hard to implement. There is no OOTB solution for this.
You have to build a custom component for site studio that hooks into the contribution mode and allows you to link content from one language to another.
You also have to customize the content presenter so it knows about the different languages and which content ID's to use for which language.
When you need to do this in a project, this mostly takes about a few weeks to a month of work to fully implement...
size of images
Will carousel only display images in that size? Can I customize the carousel template?
Dynamic List for News with content presenter
Hello:
how i can implement dynamic News from UCM with Content Presenter ?any idea ,i have xml file for each news this file have element for news title,news Image ,news Body and i am parsing xml file through region template from UCM using ssIncludeXml ,My problem is when i want to click on the news i need to open it on another page in spaces with full news description?
Maybe this post can be
Maybe this post can be helpfull: http://yonaweb.be/webcenter_tutorial/using_content_presenter_templates
Add new comment