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 laterInformation in this document applies to any platform.
Goal
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
https://docs.oracle.com/en/cloud/paas/content-cloud/creating-experiences/customizing-favicons.html
Part II Creating and Editing Sites > 5 Edit Sites
Customize Site Settings > Edit Site Settings
https://docs.oracle.com/en/cloud/paas/content-cloud/creating-experiences/edit-site-settings.html
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.
Solution
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
Goal |
Solution |