You need to sign in to do that
Don't have an account?
Swetha A 5
hide sidebar and header from standard salesforce page
Hi all,
Can we remove the sidebar and header from a standard salesforce page using a visualforce page?
I mean Can we add any css or javascript function to achieve this? If this is possible, please provide me a solution. It's urgent.
Thanks in advance.
Can we remove the sidebar and header from a standard salesforce page using a visualforce page?
I mean Can we add any css or javascript function to achieve this? If this is possible, please provide me a solution. It's urgent.
Thanks in advance.
The issue got solved. Just add "&isdtp=vw" to the url in the action attributr of the apex:page and it is done. Looks so simple but it took lots of time to research. Anyways we got the answer. Cheers.
All Answers
Let me know if this will help
<apex:page showHeader="false">
<chatter:feedWithFollowers entityId="{!$User.Id}" />
</apex:page>
Best Regards
Naga Kiran
Visualforce page:
Apex class:
THe issue is I am getting the side bar and header when I add this page to homepage component. Thank you.
i try lots of solution for this using inspect element but as you are using the direct url in the action so when you preview the vf page its open the direct url not the vf page, so first remove url from the actiion and after that try showheader= "false" and sidebar = "false" and cache = "false'.
Thanks
Gyani
The issue got solved. Just add "&isdtp=vw" to the url in the action attributr of the apex:page and it is done. Looks so simple but it took lots of time to research. Anyways we got the answer. Cheers.
<apex:pageBlockButtons location="top" >
<apex:commandbutton action="{!redirect}" value="Edit Opportunity Contact Roles"/>
</apex:pageBlockButtons>
public PageReference redirect(){
PageReference newPage = new PageReference('/p/opp/ContactRoleEditUi/e');
newPage.getParameters().put('oppid', oppIds[0]);
newPage.getParameters().put('retURL', returnUrl);
newPage.getParameters().put('isdtp', 'vw'); <--This Line Takes out the header and sidebar
newPage.setRedirect(true);
return newPage;
}