> For the complete documentation index, see [llms.txt](https://docs.jollyany.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jollyany.co/templates/pethub/events.md).

# Events

### Create Joomla articles for Events

The Courses page of the template is built with Joomla articles, and you're supposed to create categories and articles for events

* Please go to Admin > Content > Articles > Create new articles
* Assign them to your event category
* Go to the tab "Article Type Options" > Select Article Type > *Regular / Video / Gallery / Audio / Review / Quote*

### Create an event information

* After that, please go to the tab "Event Options", you'll see the event's options
* Enter the information of the event including Location, Phone, Guest Number, Call-To-Action text, URL, Latitude & Longitude&#x20;
* Set the start time and end time for the event

{% hint style="info" %}
The Call-To-Action button is only visible when you set the start time after the current time. \
Ex: Current time: July 3rd, 2021 -> the start time should be later than July 3rd, 2021
{% endhint %}

{% tabs %}
{% tab title="Demo" %}
![](/files/VBO1lT3dZ8T42A165vKA)
{% endtab %}

{% tab title="Event Options" %}
![](/files/YIc8wjQ6ph81NXLM2ryE)
{% endtab %}
{% endtabs %}

### Show the map

* In the tab "Event Options", you're able to enter both the Latitude and Longitude of the map
* Go to Admin > Extensions > Templates > Styles > tz\_pethub - Default > Article / Blog > Enable Event Data
* Then you can configure options for the map: Add Google API key, Map type, Map Zoom, Map height ...

![Enable event data](/files/UHeGSps5XhTPJDOptCyj)

### Add a new menu item

This step is to add a new menu item for the Events page so that it can display properly in the main menu

* Go to **Admin > Menus > Main menu > Add new**
* Menu item type: Articles > Category Blog
* Select your event category
* Template style: **tz\_pethub - Default**

![](/files/uWdEBZxWHk6W7x4QOMpr)
