function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
BhaviBhavi 

Home Page Component

Hi ,

 

How can I use static resource, Custom settings in Home page component HTML?

 

Regards,

Bhavi

Ispita_NavatarIspita_Navatar

This is what I did:-

1. I created a "Custom Home Page Component" of type "HTML Area"

2. Now in the HTML area add the following iframe

   <iframe src="/apex/HomePage" width="100%" height="1024"></iframe>

   where HomePage is your visual force page which will now appear in the Home Pahe component added by you.

3. As you go to the Home Page Component Detail  you can edit the embedded VisualForce page just like you edit any visualforce page in inline editor.

4. Now for the next part of your question if you can refer to the "Static Resource" and "Custom Setting" well as now it is a visualforce page you know better how versatile you now get.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.

BhaviBhavi

Hi Ispita,

 

You solved my problem up to a level, but still I am facing another issue.

I put the iframe in the component but now I am not able to call the iframe  function. It's Giving an error:

 

Error: Permission denied for <https://na7.salesforce.com> to get property Window.getServerURL from <https://c.na7.visual.force.com>.
Line: 1

 

Error: Permission denied for <https://na7.salesforce.com> to get property Window.getServerURL from <https://c.na7.visual.force.com>.Source File: https://na7.salesforce.com/home/home.jspLine: 1

 

Thanks,

Bhavi