I have a public calendar that I am trying to display as a VisualForce Page in Lightning. The code is very basic but I am getting the error that it is unavailable in Lightning.
I have checked the box to make it available and have added the Tab to my Lightning Apps that I want to use. What could I be missing?
Controller:
public with sharing class CH_Public_Calendar_Controller {
public String calendarId {get; set; }
public CH_Public_Calendar_Controller () {
calendarId = Calendar__c.getValues('PubCalendar').CalendarId__c;
}
}
Page:
<apex:page controller="CH_Public_Calendar_Controller" action="/00U/c?cType=1&cal_lkid={!calendarId}&md0={!YEAR(TODAY())}&md1={!MONTH(TODAY())-1}">
Please wait...
</apex:page>
This does not seem to be something that should be this difficult. Any assistance would help.