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
Mallaurie Mulciba 24Mallaurie Mulciba 24 

Visual force pages on home page

Hi everybody 

I have created a visualforce page to display to access an object.

My code is the following :
 <apex:page > <apex:enhancedList customizable="true" height="600" type="Kilometrage__c"/> </apex:page>

I display this VF on the home page for some user. actually  i have the following page in my home page in creation mode

User-added image


I would like to remove the header with all the tabs and settings and also the side menu on the left.

Is there anyway i can mention this in the code?

Thanks in advance for your help
venkat-Dvenkat-D
User Sidebar = "false" and showHeader="false" in ape:page

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_page.htm
Mallaurie Mulciba 24Mallaurie Mulciba 24
Hi Venky,

Thanks for your anwser. How exactly should i write it in the code?
Im not a developper so i have to admit that i dont know how to write it properly.
venkat-Dvenkat-D
<apex:page sidebar="false" showHeader="false" > 
<apex:enhancedList customizable="true" height="600" type="Kilometrage__c"/> 
​</apex:page>

 
Mallaurie Mulciba 24Mallaurie Mulciba 24
Unfortunately i have the following message "
Error: <apex:enhancedList> component cannot be included when <apex:page> 'showHeader' attribute is false'
veer singhveer singh
Hi Mallaurie,

There is no direct method to remove hearder with EnhancedList.
We can hide it using css.
<apex:page sidebar="false"> 
    <style>
        .bPageHeader{
            display:none;
        }
    </style>
    <apex:enhancedList customizable="true" height="600" type="Account"/> 
</apex:page>
so now Header will be removed from your page.

Thanks,
Veer