Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Steps in displaying the Single Calendar Component 

  1. Display Single Calendar on the Person Account record page.

...

Go to

...

Name: SingleCalendar

URL: singlecalendar

Click Create button > Builder

...

Go to the site Settings > Security & Privacy

Clickjack Protection Level: Allow framing by any page (No protection)

Security Level:  Relaxed CSP: Permit Access to Inline Scripts and Allowed Hosts

Lightning Locker: Enable

...

Display the component in the site. Go to Components > drag and the Absence Submission Record Page > Drag and drop the PosiEd Calendar Component .

...

Put the following values:

  • Record Id= {!recordId}

  • Aura Id = {!auraUserId}

  • Is Student Portal = ticked (if it’s for a Student)

  • Is Student Portal = (if it’s for a Student)

  • Is Parent Portal = (if it’s for a Parent)

  • Is Staff Member Portal = (if it’s for a Staff)

...

Click the Publish button.

After clicking the Publish button, review the Calendar Component in the Person Account layout.

...

Site Access

Make sure that the Site Guest Profile has access to the SingleCalendarContoller.

  1. Go to Setup > All Site > Click the builder on the SingleCalendar site

    1. redirects to builder

  2. Go to Settings

    1. Click SingleCalendar Profile

...

  1. Click Apex Class Access

...

  1. Then map the following class name:

    1. PosiEd.CalendarController

    2. PosiEd.CustomCalendarPortalHandler

    3. PosiEd.ColorHexGenerator

...

  1. Make the site Public.

...

Configuration for Staff Calendar on the Person Account (Internal/Portal)

Internal

Setup > All Sites > Single Calendar > Settings > Single Calendar Profile > Object Settings

...

Give READ access to the following objects and fields:

  • Object: PosiEd__Cohort_Session__c

    • PosiEd__Session__c

    • PosiEd__Cohort__c

  • Object: PosiEd__Cohort__r

    • PosiEd__Calendar_Colour__c

  • Object: PosiEd__Employee_Role__c

    • Employee_Account__c

    • PosiEd__User__c

...

Portal

For the Portal view for the Staff Single Calendar, give READ access to the following fields.

Setup > Profiles > Customer Community Plus User > Object Settings

Give READ access to the following objects and fields:

  • Object: PosiEd__Cohort_Session__c

    • PosiEd__Session__c

    • PosiEd__Cohort__c

  • Object: PosiEd__Cohort__r

    • PosiEd__Calendar_Colour__c

  • Object: PosiEd__Employee_Role__c

    • Employee_Account__c

    • PosiEd__User__c

...

Add Customer Community Plus Login User profile to each of the Calendar Portals (Student/Staff/Parent). This is for the Calendar access through the Person Account record.

Go to the Portal > Administration > Members > add Customer Community Plus Login User.

...

Go to Setup > Profile > Customer Community Plus Login User > Apex Class Access > add the following:

  • PosiEd.CalendarController

  • PosiEd.CustomCalendarPortalHandler

  • PosiEd.ColorHexGenerator

image-20240314-055135.pngImage Removed

Calendar Component.mp46.1.11 to the right sidebar.

...