+ Start a Discussion
DemintDemint 

How to render the tab 'bar' with the icon in a visualforce page

Hi,

 

I am struggling with what I guess should be simple - please help!

 

I want to add the colored bar (with the icon on it) to a VF page, and ideally inherit the color and icon from another tab.  Easy??

 

In the simplest form here is what I am doing - but whatever I try I can't get the bar with icon to appear (the colors are inherited but the bar is not there).

 

Am I missing something?  Is there an <apex> tag to use etc?

 

<apex:page standardController="Contact" showheader="true" tabStyle="Opportunity" > <!-- Begin Default Content REMOVE THIS --> <h1>Congratulations</h1> This is your new Page: tabstyle_test <!-- End Default Content REMOVE THIS --> </apex:page>

 

 

Thanks

Demi

Best Answer chosen by Admin (Salesforce Developers) 
mcrosbymcrosby

If I understand your question correctly, then I believe you want to use the following:

 

 

<apex:sectionHeader title="[Title]" subtitle="[Subtitle]" />

 

 That should display the header bar with the appropriate icon.

 

All Answers

mcrosbymcrosby

If I understand your question correctly, then I believe you want to use the following:

 

 

<apex:sectionHeader title="[Title]" subtitle="[Subtitle]" />

 

 That should display the header bar with the appropriate icon.

 

This was selected as the best answer
DemintDemint

Thankyou mcrosby - you are a star!  Thought it would be something simple!

 

Demi

insalesforceinsalesforce
How to add specific icon over this title?