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
LinThawLinThaw 

How to get public calendar in vf (without header and sidebar) ?

Hi 

How to get public calendar in vf (without header and sidebar) ? 
<apex:page controller="CalendarController" sidebar="false" showHeader="false" action="/00U/c?cType=1&cal_lkid={!calendarId}&md0={!YEAR(TODAY())}&md1={!MONTH(TODAY())-1}"> 

</apex:page>

--------------------

public with sharing class CalendarController {
    public String calendarId {get; set; }

    public CalendarController () {
        calendarId = '0237F0000017MNI';
    }
}


Thanks

Regards,
LinThaw
NagendraNagendra (Salesforce Developers) 
Hi Linthaw,

May I suggest you please check with below link for a similar issue which will point you in the right direction. Hope this helps.

Kindly mark this . as solved if the information is helpful so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.

Thanks,
Nagendra
LinThawLinThaw
Thanks Nagendra,
I already test it too, but it also show header and side bar.
Regards,
LinThaw
LinThawLinThaw
I got it by adding following parameter.
&isdtp=vw
<apex:page controller="CalendarController" sidebar="false" showHeader="false" action="/00U/c?cType=1&cal_lkid={!calendarId}&md0={!YEAR(TODAY())}&md1={!MONTH(TODAY())-1}&isdtp=vw"> 
</apex:page>
Good luck to all.