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

Prasanna1838Prasanna1838

Have you tried closing your development mode??

d.sureshkumar41.33978150573839d.sureshkumar41.33978150573839

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.