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
needhelpneedhelp 

Customize home page with visualforce page

Is there any other way to include visualforce page into home page instead of using iframe?

 

By using iframe, there will have scroll bar which I do not want.

wesnoltewesnolte

Hey

 

There is. Simply use <apex:include pageName="{!$Page.myPage}"/>

 

Cheers,

Wes 

mattdarnoldmattdarnold

I don't think apex:include will work here since the home page component is just an HTML area and not a VF page. (At least it didn't when I tried this out.)

 

I used the following iframe code for a custom home page component and I didn't get scroll bars or the iframe border, but my embedded VF component was a widget with a fixed height - that may be the only way to avoid the scroll bars.

 

<iframe src="/apex/HomePg" frameborder="0" height="510" width="100%"></iframe>

 

 

 

wesnoltewesnolte

Ah my bad. Didn't read the part about being the home page. Yeah you have to do it that way. It's a silly restriction but what can we do really.

 

Cheers,

Wes

Edwin VijayEdwin Vijay

Try this way

 

 

<iframe src="/apex/HomePg" frameborder="0" height="510" width="100%" style="overflow:visible;">

 

 Cheers!

 

needhelpneedhelp

I can't fix the size as my content is based on the data being retrieve.

 

I would like the VF page fully display at the home page without scrollbar, so the overflow syntax also not suitable for this case.

 

any other solutions? 

zeezackisbackzeezackisback

It does not work. I've tried hooking up the visualforce page using the iframe.

 

Isn't there a simpler way to attach visualforce pages into the home page.