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
AkiTAkiT 

With showHeader="false" page loses style, bug or normal?

Hi,

When I hide the tab and sideabar using showHeader="false" the tab style is lost and everything is black. Is this a bug or normal behavior? If normal, how could I use the tab style from my custom object even if header is hidden?

Code:
<apex:page standardController="FL_Tender__c" showHeader="false" sidebar="false" tabStyle="FL_Tender__c">

<apex:detail ></apex:detail>

</apex:page>

 

Best Answer chosen by Admin (Salesforce Developers) 
AkiTAkiT
I have found that using e.g.:

Code:
<body class="opportunityTab">

 
is possible to get styling back.

All Answers

AkiTAkiT
I have found that using e.g.:

Code:
<body class="opportunityTab">

 
is possible to get styling back.
This was selected as the best answer
AkiTAkiT
Does anyone know in which format you need to type custom tab name if you want to use it's style.

"my_customobject__cTab" doesn't seem to work...?
Sam.arjSam.arj
If you are using the standard controller you do not need to provide the tabStyle it automatically follows the custom object's style.
If you are using custom controller then you will need that.

Normally what should your page follow is the setting you provide for the Tab you create for your custom object.

If you use standardStylesheets="false" the original styling will be removed but when it is set to true it should show you the custom object's tabStyle. This seems to be a bug.






Message Edited by Sam.arj on 09-23-2008 12:02 PM
ESES
Page should still have been using the correct style instead of the default when showHeader is false, I've logged it as a bug. Thanks for reporting.