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
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 />

</apex:page>

 

Vf component: 

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

 

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

 

Any suggestions?

 

Regards,

R

 

Parth_SevakParth_Sevak

Hi Ranjith, 

 

 

Can you try by adding height attribute into HTML link ?

like 

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