Handling URLs as content

In building on a couple of earlier posts, I recently created a small component to further enhance the ability to handle URLs as content in UCM.

First, I wrote a post describing how to enable 'Metadata Only' as an option when doing a Check In. That is the first step in being able to handle URLs. Then I wrote a post describing how you can hide the Primary and Alternate File fields and default the check in profile page to do the 'Metadata Only' check-in.

So from a contribution perspective, this all works well.

external_url_profile2.png

But from a consumption perspective, it's not handled very gracefully. By default, links on the search result page point to the Content Information page for the item. For metadata-only items, that makes sense. But when it's a URL that is being managed, it would be nice if the link followed that URL. The other thing that happens is the file that gets created in the web location is a static HTML file which contains all of the metadata. Again, generally useful for metadata-only items, but not so much for URLs.

So I created an

ExternalUrl
custom component which does two things. First, it changes the links on search results for metadata only items to point to the web location just as standard content items do. Second, if there is a value in the URL metadata field, it changes the HTML page that is created to do a redirect to the URL specified. That means when a user clicks on the web location of the file in UCM, they are immediately taken to the location specified in the URL field. If the URL field is blank, the standard metadata only HTML page is generated.

external_url_link.png

The component has 2 parameters in the externalurl_environment.cfg file.

ExternaURLField=xExternalURL
LinkToInfoOnResults=false

The ExternaURLField parameter identifies the metadata field used for the URL and LinkToInfoOnResults determines whether to link to the Content Information page or directly to the file on search results.

A nice side-benefit to doing it this way means that Content Tracker is able to track hits to these URLs. So just like with content, you can determine what URLs are most popular and which ones aren't getting used.

Component Download:

ExternalUrl.zip

*Note: This post also applies to Universal Records Management (URM).

Comments:

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
« April 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
   
       
Today