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

Can I include home page in a VF page?

I want to include home page in a VF, Please advise.





You can certainly do this.  Here's how to do it with an iframe:


  <apex:iframe src="/home/home.jsp"/>


Of course if Salesforce change the way that home pages are generated, this will also need changing.


I am trying to put home page on the service cloud console. I was planning to have VF tab as home and include the home.jsp in that but with your solution I am seeing two headers.


Yes, you will see two headers as the home page contains a header and sidebar. 


I'm not aware of any way that you can pull in just the body of the home page.  The best avenue to explore would be to have an HTML sidebar component with javascript that changes the display style of the header section to none.  You'll probably need to add a parameter or similar to the URL so that your javascript can detect it is being used in the console.