Contao includes a number of built-in function modules that help to make certain tasks easier to accomplish.  The Contao Calendar is one of these options.  It can be quickly setup to appear on a page within the Front end Site Structure with only a few requirements.  The following article shows how to setup the calendar using the Contao back end interface.

 

How to Add the Contao Calendar

 

  1. Login to the Contao Back end
  2. Scroll down the left hand side and then click on Site Structure.  If you do not see the website structure displayed completely, click on TOGGLE ALL in the top right hand corner to expand the site structure so that you see it as per the following screenshot:

    Site Structure Showing Group Calendar

    For the purposes of this tutorial, we are going to create a GROUP CALENDAR that can show the Contao Calendar module that comes with this theme.  Click on NEW PAGE in the top right hand corner.

  3. When creating a new page in the site structure, you will first be required to position the page within the site structure.  Here's a screenshot that shows what you may see:

    New Page positioning

    As per the screenshot above, click on the clipboards to position the new page. The highlighted page indicates where the page would appear if you were to click on the clipboard (with the arrow pointing to the right) for "The academy".  If you are dissatisfied with the position of the new page, you can click on the blue arrow icon and then move the page to a different location as necessary.  For the purpose of this tutorial go ahead and position the page so that it is in "The academy" group as per above.

  4. When the form for the new page appears, fill in the title field and make sure that the PUBLISH PAGE option has been checked off.

  5. Click on SAVE AND CLOSE.

  6. When the new page is created, it will be displayed in the tree structure.  Click on the title of the page in the tree view to isolate it.  You should see it appear like this:

    Group Calendar page isolated in tree style view

    Last icon on the right is the icon to edit the articles of the page (hovering over it will show "EDIT THE ARTICLES OF PAGE ID ##").  Click on this icon and you will see GROUP CALENDAR [Main Column] appear.

  7. When you see the Group Calendar Article appear, it will have the usual group of icons on the right.  Click on the first icon to edit the article (click on the icon that resembles a pencil). 

  8. In the next screen that appears, click on NEW ELEMENT in the top right corner to proceed. You will then see the following screen to position the new element:

    Position the new element page

    Click on the clipboard (with the arrow pointing down).

  9. The next screen you will see is the form for creating the new element.  The following screenshots will walk you through the settings for setting up the calendar module:

    Select the Content Element

    Click on the drop-down menu for the ELEMENT TYPE and scroll down until you find CONTENT ELEMENT.  Click on it to choose it.  When you select it, you will see the menu change.  The next drop-down menu will say REFERENCED ELEMENT.

  10. Next, click on the drop-down menu for the REFERENCED ELEMENT and scroll down until you see MODULE (CALENDAR-CALENDAR, ID 53).  Select it and then scroll to the bottom of the page and click on SAVE AND CLOSE.



 

Modifying the Calendar Options within the Theme

There is one last thing will need to be done in order to make sure that the Calendar appears correctly.  The theme will need to be set so that that the calendar functionality will work and show the calendar that you create.

  1. In the Back End Modules along the left hand side, click on THEMES. If these steps are not completed you will NOT see your calendar appear.
  2. When you click on THEMES you will see the following screen:

    Edit the theme

    As per the screenshot above, click on the fifth icon to the right. Hover over it and it will show "Edit the front end modules of theme ID 1".

  3. When you click on the icon to edit the front end theme, you will see the following list:

    Edit the Front modules of the theme

    The items that require change are the Calendar entries.  They are highlighted above.  Click on the edit icon (the icon that resembles a pencil) for each highlighted item above.

  4. For each calendar item in the list (there are four as per the screenshot above), look for the Module Configuration Section and the Calendars checklist.  It will appear as follows:

    Modify each calendar item

    Once all of the Calendar entries have been modified in the theme, then click on SAVE AND CLOSE.

     

This will complete the process of adding the calendar module to the Site Structure.  Here's how it will appear on the front page.  The page structure will be clickable within the menu, and selecting it will display the calendar in the main page:

Calendar - front end

The screenshot above shows the page added to the menu structure and the calendar module in action.  The next step in adding a calendar is to create events that can be listed on it.  For more information on creating events, please go to Creating Events in the Contao Calendar.

 

 

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}