My Oracle Support Banner

How to Use a Relative Path for Background Image in a Page Skin (Doc ID 1414929.1)

Last updated on NOVEMBER 14, 2022

Applies to:

Oracle WebCenter Portal - Version and later
Information in this document applies to any platform.


Would like to define the "background image" for a skin to the relative path instead of using absolute path.

Steps to reproduce the behavior:
1.  Upload an image to WebCenter Spaces (documents tab) that you can use as background image.
2.  Get the download link for this file (for example, the download URL is:  http://servername:8888/webcenter/content/conn/WebCenterSpaces-ucm/path/PersonalSpaces/weblogic/image1.PNG.
3.  In Spaces, navigate to Administration -> Resources -> Skin.
4.  Create a new skin (can copy from one of the existing).
5.  Select a Skin -> edit dropdown-> edit option.
6.  Set the "background image" using the relative path for the image. For exampe:  /webcenter/content/conn/WebCenterSpaces-ucm/path/PersonalSpaces/weblogic/image1.PNG.  This does not display the image.
7.  Set the "background image" using the absolute path for the image (http://servername:8888/webcenter/content/conn/WebCenterSpaces-ucm/path/PersonalSpaces/weblogic/image1.PNG). This displays the image.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.