# 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.jollyany.co/templates/pethub/events.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
