With calendar resources, you can invite entities other than people to your events. This is beneficial for finding the availability of important resources your event requires, like a conference room, laptop, or, at The Lunar Resort, the Sasquatch Space Suit used to scare guests out on Lunar hikes.
Another important topic is porting your calendar’s data from one installation of Liferay DXP to another.
Calendar Resources
Follow these steps to add a new calendar resource:
-
Click on the Resources tab and click Add Resource.
-
Fill in the New Resource form. Enter a name, give it a description, and choose whether to set it as active. You can also tag it, assign it to categories, and configure its permissions. Click Save.
The resource has its own calendar that was generated automatically (this is how users can check its availability when creating events). Just as with Users, however, resources can have more than one calendar. Follow these steps to assign a new calendar to the resource:
-
Go to the widget’s Resources tab, click the button next to the resource, and select View Calendars.
-
Click Add Calendar and continue just as if you were creating a calendar for a user or a Site.
Once a resource is created, invite it to your events just as you would an attendee.
Exporting and Importing Calendar Data
Like other Liferay Applications, the calendar allows data to be exported or imported as LAR files. As with all LAR files, data can only be ported between installations of the same version.
-
From the calendar widget, click the button in the widget header and select Export/Import.
-
Enter a name for the LAR file (or use the default).
Under Application, choose whether to include the widget’s configuration in the LAR.
Under Content, choose how much historical data to export and select the content types (calendars, resources, and events) to include. You can also choose whether to include comments and ratings.
Check the appropriate boxes to select whether to include deletions and permissions in the LAR.
-
Click Export. When a success message displays (this may take a few moments) you can click on the LAR’s filename to download it.
Follow these steps to import a LAR:
-
From the calendar widget, click the button in the widget header and select Export/Import.
-
Click the Import tab.
-
Click Choose File or else drag-and-drop a LAR into the area surrounded by a dotted line. Click Continue.
-
Decide how much data you want to import:
Under Application, check the box to import the configuration stored in the LAR or leave in unchecked to keep your current configuration.
Under Content, decide which content types (calendars, resources, and events) to import, and whether to include comments and ratings.
Choose whether to import permissions and deletions, and decide whether to delete your widget’s existing data before the import.
-
In the collapsible Update Data section, choose how data will be updated.
Mirror: The data will be imported along with a reference to its source. This allows data to be updated rather than duplicated if the same LAR is imported more than once.
Copy as New: All data is imported as new entries. Repeat imports will produce duplicates.
-
In the Authorship of the Content section, choose whether to keep the original author of the imported content (where available) or to list the current user as the author.
-
Click Import.
Your calendar is set up and ready to go! Better check it to see what’s next on the agenda.