Standard and Custom Objects in Salesforce have three character prefixes which form the first part of the record ID. For example, an Account record with ID “001g000001jmmCA” has the prefix “001”, which is the prefix for the Account object.
In some scenarios, you may want to find out the name of the object associated with the prefix using Apex code.
Sometimes we need to hide header and sidebar of a Visualforce page or Standard layout. So here are some ways to hide header and sidebar for Salesforce Visualforce page and Standard layout.
Generally in Visualforce Page we use sidebar="false" to hide sidebar. To hide header and chat widget we use header="false" and showChat="false" respectively.
Hide Header and Sidebar from Visualforce Page with specifying header="false" and sidebar="false".
Hide Header and Sidebar from Visualforce Page or Standard Layout by adding isdtp parameter in the URL. The main purpose of isdtp can be used to hide Salesforce header and sidebar on Standard Pages.
vw – The Visualforce page will be rendered without header and sidebar, supports aloha theme, allows chatter.
lt – leaves off SF formatting, page header, sidebar, tabs and section header.
nv – The page will be rendered without the tabs and sidebar, and will accommodate all the buttons in a list view.
mn – Retains Old Salesforce Styling, hides page header(tabs) and sidebar.
PageReference pgref = new PageReference('/apex/pagename?recordId&isdtp=vw);
Hide Sidebar from Standard layout.
Go to – Setup || Customize || User Interface – checked the check box “Enable Collapsible Section”. After that you can show or hide sidebar in Standard layout.
Go to Administer | Security Controls | Login Access Policies | Select Administrators Can Log in as Any User
With this feature enabled, System Administrators can log in as any user in their organization without asking internal end-users to grant login access.
Note: This feature is available in Enterprise, Performance, Unlimited and Developer Editions. If this feature is not found in your Org, contact Salesforce.com support to enable.