My Oracle Support Banner

Sample Code: Assign Path To Favicon Via PreInitRendering function (Doc ID 2831991.1)

Last updated on JANUARY 12, 2022

Applies to:

Oracle Content Management - Version N/A and later
Information in this document applies to any platform.


When setting favicon to an Oracle Content Management (OCM) site, you need to assign the path of the favicon file as a "link" tag after uploading the file.

Building Sites with Oracle Content Management
  Part IV Developing for Sites > 25 Customize the Controller File
    Custom Controller File Samples > Customizing Favicons

  Part II Creating and Editing Sites > 5 Edit Sites
    Customize Site Settings > Edit Site Settings


This document provides another way to assign the path, a sample controller file to assign the path via JavaScript code instead of hard-coding the path into the control file, so as to flexibly configure it.

This sample code is provided for educational purposes only, and is not supported by Oracle Support. It has been tested internally, however, we do not guarantee that it will work for you. Ensure that you run it in your test environment before using.



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.