Displaying Native Content With Site Studio 10gR4 in External Apps

With the release of Site Studio 10gR4, one of the major benefits is to be able to expose web content in external applications. So if you wanted a content item to be displayed in your WebCenter Interaction portal, SharePoint, PHP site, etc..., you can now easily do that. Basically, Site Studio 10gR4 added 2 new major services to UCM to allow for display and editing of content outside the context of a Site Studio site. Detailed instructions on these services are covered in a white paper available on OTN.



But one of the things that is not addressed in the white paper is how to expose regions that have dynamically converted native content. So for instance, perhaps you are presenting research findings to your website that have been authored in Word format. One of the great features of UCM is the ability to convert that document into a very clean and controlled HTML document. For more information on setting up native content in Site Studio 10gR4, there is a viewlet available.


When native content is converted and displayed within a Site Studio 10gR4 site, it needs to have a Conversion Definition applied to the site properties. This points to the Conversion Definitions rules item. This lets the region know how to convert the content. But since the WCM_PLACEHOLDER service is executed on a discreet piece of content, it doesn't have reference to a site that would define the rules. So it needs to be passed in a different way.


Normally when a dynamic conversion element is added to a Region Template, it looks like:


 <!--$wcmDynamicConversion("Basic")-->


So in this case, the rule to use is called 'Basic'. And that rule is defined in the Conversion Definition that is tied to the site.


conv_def.png

But if we want to use the WCM_PLACEHOLDER service to specify our content and Placeholder Definition/Region Template, then the Conversion Definition can be defined directly in the Region Template element.


 <!--$wcmDynamicConversion("Basic","conversionsDefinitionDocName=CD_MAIN")-->


The conversionsDefinitionDocName parameter defines the Content ID of the Conversion Definition object that has the 'Basic' rule defined. In addition to this parameter, there are additional parameters you can add to the wcmDynamicConversion function.



  • ruleName - the name of the rule as defined in the ConversionsDefinition file. Required

  • dataFileDocName - the dDocName of the native document to convert.

  • pageNum - the page number within the native document to convert.

  • conversionsDefinitionDocName - the dDocName of the conversion definition.

  • conversionType - Possible type values = [simple|full|rule|engine|command]

  • conversionTemplate - the content ID of the Template. Valid only when using conversionType="full".

  • conversionLayout - the content ID of the layout. Valid only when using conversionType="full".

  • conversionRuleName - the name of the rule. Valid only when using conversionType="rule".

  • conversionCommand - a piece of Idoc script executed in the context of the page. Valid only when using conversionType="command".


Using the above parameters, you can go as far as defining the exact conversion rules and not need to point to a conversion definition object.

Comments:

How do i display native content file link in DIS 11G which is available for content information in content server. :)

Posted by kiran on October 19, 2010 at 11:14 AM CDT #

Hello Kiran, You would need a component in order to change the display on the information page to expose that link. But you can get to the native link simply by highlighting your file, right clicking, and selecting Copy Links. This will give you the native content link along with the link to the web viewable and content information page for that item. Thanks, Kyle

Posted by kyle.hatlestad on October 20, 2010 at 02:01 AM CDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Kyle Hatlestad is a Solution Architect in the WebCenter Architecture group (A-Team) who works with WebCenter Content and other products in the WebCenter & Fusion Middleware portfolios. The WebCenter A-Team blog can be found at: https://blogs.oracle.com/ ateam_webcenter/

Search

Archives
« July 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today