Skip To Content
Back to Help Center

CalendarAnything Communities Calendar VisualForce Page TemplateCategorized in Feature SetupCategorized in TroubleshootingCategorized in User Guide

To use CalendarAnything in a Salesforce Community, it is recommended that you create an embedded Visualforce calendar page using the following page code:

<apex:page sideBar=”false” showHeader=”true” cache=”false”>
<div style=”position:relative;height:500px;” id=”CA_INSIDE”>
<script>
var fStartFunc = function(oAPI) {
oAPI.setFunc(‘externalLink’, function(sId, oEvt){
var bCommunity = document.location.href.indexOf(‘COMMUNITY‘) > 0;
if (!bCommunity){
window.open(‘/’ + sId);
} else {
window.open(‘/COMMUNITY/’ + sId);
}
return false;
});

jQuery(window).on(‘resize.CA’, function(){
var nH = jQuery(‘.bodyDiv’).height() – 50;
jQuery(‘#CA_INSIDE’).css({
“min-height” : nH + ‘px’
});
jQuery(‘#bodyTable’).css(‘height’, nH + ‘px’);

});

jQuery(window).trigger(‘resize.CA’);
}
</script>

<SLCA2:calendar date=””
view=”month”
filter=”{}”
calendar=”CA_ACCESSIBLE”
settings=”[]”
urlparams=”site=1″
namespace=”SLCA2″
readonly=”{
edit : true,
create : true,
detail : true,
move : true,
hover : true,
contextEvent : true,
contextCalendar : true,
contextArea : true
}”
func=”{
ready : fStartFunc
}”

></SLCA2:calendar>
</div>
</apex:page>

Simply replace the COMMUNITY sections with community name. For example, if you community is called ‘mytestcommunity’ then simply replace the red highlighted sections with ‘mytestcommunity’,

Note: The community name is not the full URL to your community.

You can then create a Visualforce tab that can be used to access this calendar from within your Community.

We don't support Internet Explorer

Please use Chrome, Safari, Firefox, or Edge to view this site.