+ 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?






Hi Ranjith, 



Can you try by adding height attribute into HTML link ?


<iframe src="/apex/Custom_Home" frameborder="0" height="230" width="100%"></iframe>