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
DevNVDevNV 

Using visualforce in customer portal header file

I'm trying to use a visualforce page to display content in my customer portal header to take advantage of translations and custom labels.  When I view the end result, all I see is the custom header and no tabs or portal content.  I'm doing the following:

  1. Create a VF page with the logos and content I want to see in the portal header.  Give all profiles access to this page.
  2. Create a basic htm file with an iframe tag pointing to the above VF page.  Uploaded into Documents
  3. Update the portal to point to this document in the Header file.

When I log into the portal, I can see the wonderful custom header with translations etc, but nothing else - no portal tabs or content whatsoever.  Anyone else able to display VF in the header?

 

VF Page code:

<apex:page showHeader="false" sidebar="false">
    <table width="100%"><tr>
        <td align="left">
            <apex:outputPanel rendered="{!$CurrentPage.parameters.logoId != ''}">
                <a href="/home/home.jsp" target="_top">
                <img src="https://na1.content.force.com/servlet/servlet.ImageServer?id={!$currentpage.parameters.logoId}&oid=00D300000006e0w" /></a>
            </apex:outputPanel>
            <img src="/s.gif" alt="" width="1" height="1" class="spacer" title=""/>
        </td>
        <td align="right">
            <div class="linkElements">
            <a href="/apex/Frequently_Asked_Questions?sfdc.tabName=01r30000000Z14v"  target="_top">{!$Label.Get_Help}</a>&nbsp;&nbsp;
            <a href="/apex/ResetPortalPwd"  target="_top">{!$Label.Change_Password}</a>&nbsp;&nbsp;
            <a href="/secur/logout.jsp"  target="_top">{!$Label.Logout}</a>&nbsp;
             
        </div></td>
    </tr></table>
</apex:page>

 

 

HTM File content:

<iframe width="100%" height="80px" src="/apex/PortalHeader?logoId=01530000000wGQe" frameBorder="0"/>

 

calvin_nrcalvin_nr

Hi were you able to get a solution for this?

DevNVDevNV

No, I ended up having to create 2 portals, 1 for french users and 1 for english, then using static HTML with the translations.  You can still have links that open Apex pages but not dynamically pull info from the user to display on the header.  If anyone else finds a solution I'd love to hear it.