UCM Custom Skins and Layouts

orabank.png

In UCM 10gR3 and in earlier versions of Content Server 7.x, it used to be that you could create a new skin for the interface by taking one of the skins in the [weblayout dir]\resources\layouts\[layout name]\ directory, making a copy, and giving it a new name. Then in the User Profile page, you'd have a new choice in the Skin pull-down list. The same method would hold true for creating custom layouts as well.

In 10gR3, a new publishing architecture was put in place so that you could create a component which would have resources that could be published out to these directories. This is how the standard Oracle and Oracle 2 skins and layouts work now. Anyone who tried to modify the images or stylesheets in those skins within the weblayout\resources structure would have seen them eventually revert back to the default ones. That's because the server was republishing the originals out to those directories.

But custom ones that lived in that directory were left alone and still appeared in the Skin or Layout list. Until, that is, version 10.1.3.3.3 of UCM. Changes where made so that if your skin was not identified in a custom component to be merged with the LmLayoutSkinPairs table, then it wouldn't appear in the list.

Luckily, there are a couple of config flags that allow you to continue using the old method of simply having the folders in the weblayout\resources structure without the need for a component.

LegacyScanLayoutsDirForAdditionalLayouts=true
LegacyScanLayoutsDirForAdditionalSkins=true

To update the configuration settings, go to Administration -> Admin Server. Then click on the button for the instance and go to General Configuration. Add the two configuration entries to the Additional Configuration Variables at the bottom and hit save. Then restart the instance.

For more information on modifying the interface, check out the Create and Modify Layout Sample Component.

Comments:

Hi, thanks for your elaboration on how to create layout. It really helps me. However, after I add the two parameters in the config file, it still has nothing in the skin pull-down list, only the layout pull-down list. I just copied the folder "top menus", and then renamed it as "Crystal Top Menus". this one can be displayed in the layout pull-down list. But still nothing in the skin list. it supposed to have two options right? Can you please help on this? I'm driven crazy on this....

Posted by crystalzt on February 04, 2010 at 11:52 AM CST #

Hi Kyle, I tried this and I am also getting the same issue as crystalzt - my layout is showing on the profile list fine but the skins directories that I have under there are not showing up at all. Is there something else we need to do or a fix/workaround for this. In the name of expediency I would much rather try and create my skins/layouts this way if possible, Many Thanks, Mike

Posted by Mike Oakes on March 24, 2010 at 01:52 PM CDT #

Hey Mike and crystalzt, It looks like at some point in a patch for UCM, the config option for legacy skins was removed. So for custom skins, you'll need to actually have a component like the sample I have in the blog posting to add additional skins. Thanks, -Kyle

Posted by kyle.hatlestad on March 30, 2010 at 06:29 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
« 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