Find your content:

Search form

You are here

how to change the visual force page to look like the standard detail page section

 
Share

I have created a visual force page and embedded in the accounts. But visualforce page looks different in the section when embedded (that is the background-color is gray and does not like the standard section.

So is there a way to display VF page in detail page as standard section is displayed in detail page.

Regards,

khan


Attribution to: khan

Possible Suggestion/Solution #1

If you are using pageblocks and your embedded Visualforce looks like this:

enter image description here

so like the old UI, thick bars and grey background, you can set the mode attribute of the pageblock to mainDetail:

<apex:pageBlock mode="mainDetail">

and this will then match the standard theme. Note that it will still have a slight indent compared to the main page, this is because of the way that VF pages are iframed into regular pages.

enter image description here


Attribution to: Bob Buzzard
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/34032

My Block Status

My Block Content