Thursday, October 23, 2014

How can you make a template as Default template in Webcenter Portal application


This blog explains about how to make a custom template as default template for all the pages that you create in your webcenter portal application ?

- Open your Template.jspx file in Jdeveloper
- Set the value equals ' your newly created template' as shown below

<portal:preference
          id="oracle.webcenter.portalapp.pagetemplate.pageTemplate"
          desc="Default Page Template"
          value="/oracle/webcenter/portalapp/pagetemplates/FMTemplate.jspx"
          resourceType="Template" display="true"/>

Sunday, October 12, 2014

How to Consume a Region Definition file in Webcenter Portal Application using Document Content Presenter ?


This blog explains about How to Consume a Region Definition file in Webcenter Portal Application using Document Content Presenter

Refer below blog to know how to create a Region Definition file

http://www.fortunewebcenterminds.blogspot.com/2014/10/how-to-create-region-definition-file.html

- Launch Webcenter Custom Portal application in Jdeveloper

- Open the Page Fragment or Page where you want to display the Region Definition file.

- Search for 'Content Presenter' component in component pallet


- Drag 'Document Content Presenter' taskflow onto the page as 'region', Fill out the required information as shown below

- Ensure you provided correct details in respective page definition file.

Refer below for more info
http://docs.oracle.com/cd/E28280_01/webcenter.1111/e10273/customize.htm


How to Create a Region Definition File using Site Studio


This blog explains about how to create a Region Defintion file using Site studio, and how can this Region Definition file can be consumed in any Webcenter Portal application ?

Region definitions define the types of content used on a Web site. They could be thought of as 'content classes'. They are essentially groups of individual elements which define the various chunks of reusable information for a particular site content type. For example, as shown in Figure, there could be a region definition ('content class') called "Press_Release," which consists of the elements Title, Subtitle, Intro_Text, Body_Text, and Image. Contributor data files are associated with a region definition to store the data for each element in the region definition. (What a contributor can do with the data is controlled by element definitions; see Elements and Element Definitions.)
In addition to defining site content types in terms of its constituent parts (elements), region definitions also specify the content creation and switching options available to contributors for its associated contribution region(s). For example, if a contribution region is set up to allow contributors to switch the content of that region, they might be allowed to use existing contributor data files on the server only (not native documents or new contributor data files). (Please note that placeholder definitions control whether contributors can actually switch content in contribution regions.) Finally, region definitions also set the default metadata for content in contribution regions as it is checked into the content server.



- Launch Site Studio Designer
- Connect to respective Content Server
       Ex : http://fm039.oracleoutsourcing.com:44017/cs/idcplg
- After successful connection to Content server using Site Studio, this is how you will see.


- Choose ' Region Definitions' in Site Assets Drop down list and click on New -> Region Definition option as shown below screenshot

-Fill the New Region Definition form details, give the proper content ID value as shown below, this is the ID will be used in order to consume this data file in any webcener portal application.


- After successful creation of Region Defintion file, Search for the Newly created Region Definition file in 'Region Definition ' Site Assets window. Double click on newly created RD and choose the value for Label, Name and Element definition based on your requirement, Click on Save.

 - This is how you can create a simple Region Definition file using Site Studio.