My Oracle Support Banner

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

Last updated on JUNE 25, 2024

Applies to:

Oracle WebCenter Portal - Version 11.1.1.5.0 and later
Oracle WebCenter Portal for OCI - Version 12.2.1.4_24.2 and later
Information in this document applies to any platform.

Symptoms

Issue:
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://<HOSTNAME>:<PORT>/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://<HOSTNAME>:<PORT>/webcenter/content/conn/WebCenterSpaces-ucm/path/PersonalSpaces/weblogic/image1.PNG). This displays the image.

Changes

 

Cause

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

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


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