+ Start a Discussion
Ranjith PunneliRanjith Punneli 

Include vf page in Home Page Components

Hi All,


I need to add vf components in Customer Portal Home Page layout. Please see below my code


HTML Link:

<iframe src="/apex/Custom_Home" frameborder="0" width="100%"></iframe>&nbsp;


Vf page: 

<apex:page ">
<c:newsTopics />



Vf component: 

<apex:component controller="CustomerPortalStartPageController">
<apex:pageBlock title="Top 5 Topics" >
<apex:pageBlockTable value="{!newsTopics}" var="top5">
<apex:outputLink value="{!news.Article_URL__c}">{!news.Title__c}</apex:outputLink>


However, when i see home page, its just showing the iframe code..not actual vf page.


Any suggestions?





Have you tried closing your development mode??


Hi I am also facing the same problem how i resolved is


 1.First check the show html box and then only give the iframe code.

 2.next uncheck the checkbox there it self you show the vf page.

 3.Add that component to the customer portal home page layout then you will see that vf page in your customer portal home page.