Discussions
Change favicon and tab text of an Eloqua-hosted PDF file

We currently have pdfs hosted in Eloqua, and would like the ability to change the favicon and the tab text. Right now the favicon is Oracle, and the tab text is the URL of the asset (see screenshot). Is there a way to modify either the text or favicon?
Best Answer
-
Mark--if you are placing your PDFs in the File Storage area, you would need a container HTML page (essentially, a frame). Then you would add the following code to the head:
link rel="icon" type="image/png" href="xxxxxxxxx/favicon.png"
--Tom Shaheen, Net Portfolio, Inc., [email protected]
Answers
-
In the above post, I was unable to add a beginning and end tag to the link line above due to restrictions on posts ...
--Tom Shaheen
-
Thanks Tom, I hadn't thought of an iframe option but that works - here is code for others to reference. This sets frame to full width:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=<device-width>, initial-scale=1.0">
<title>Your Title</title>
<style type="text/css">
body, html
{
margin: 0; padding: 0; height: 100%; overflow: hidden;
}
#content
{
position:absolute; left: 0; right: 0; bottom: 0; top: 0px;
}
</style>
</head>
<body>
<div id="content"><iframe src="#" title="Your Title" width="100%" height="100%" frameborder="0"> </iframe></div>
</body>
</html>
-
A non-code solution to the tab title is you just need to edit the PDF's document properties to contain a title prior to uploading the file to Eloqua. That title is then carried over as the tab title.