# Plugin: redEvent

## Description <a href="#description" id="description"></a>

​![](https://4212440522-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L_D4iy53WFAtKVs3BPA%2F-MJgNiPAYyOgush1soIZ%2F-MJgQZliRknIbhS7n6Ee%2Fredevent.png?alt=media\&token=a7a339a9-8362-4975-af97-00bbab559633)This plugin enables you to insert events (one by one or by a selection on one or several categories) from redEvent in your Newsletter.

You can also use this plugin to automatically include your upcoming events in an Auto-newsletter or a Newsletter.

You can search in all your events and then click on one of the events to include it in your Newsletter.

## Install the plugin <a href="#install-the-plugin" id="install-the-plugin"></a>

* Log in to your backend and click on the menu "**Extensions -> Install / Uninstall**".
* Browse for the plugin you just downloaded and then click on the button "**Upload File & Install**".
* You should now see the ***AcyMailing : insert events from redEvent*** plugin in the list of plugins. Don't forget to publish this plugin.

## Plugin <a href="#plugin" id="plugin"></a>

### Single Event <a href="#single-event" id="single-event"></a>

![](https://4212440522-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L_D4iy53WFAtKVs3BPA%2F-MJgNiPAYyOgush1soIZ%2F-MJgQbN_4xPDg87C_0qB%2Fredevent_event.png?alt=media\&token=b84ca1e0-6b73-402e-9d5f-a414465a6346)

Event

You can use this interface to insert any event in your Newsletter.

Each event can be selected one by one.

### Upcoming Events <a href="#upcoming-events" id="upcoming-events"></a>

![](https://4212440522-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L_D4iy53WFAtKVs3BPA%2F-MJgNiPAYyOgush1soIZ%2F-MJgQdAoXd0o1AeTGHdJ%2Fredevent_cats.png?alt=media\&token=b2fa5240-2a3b-47d1-a67f-f91ddc423299)

categories

You can select one or several event categories and AcyMailing will automatically include the upcoming events from the selected categories when their starting date is inferior to the maximum starting date you specified.

* **Maximum Number of Articles**: The inserted tag will be replaced by a maximum of X events.
* **Maximum Starting Date**: AcyMailing will only include events when their starting date is less than X days after the current time. You can define this delay using this parameter.
* **Minimum Number of Articles**: This option will only be displayed if you access this plugin for a Smart-Newsletter. AcyMailing will only generate your Smart-Newsletter if the minimum number of events found is reached.

## Parameters <a href="#parameters" id="parameters"></a>

![](https://4212440522-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L_D4iy53WFAtKVs3BPA%2F-MJgNiPAYyOgush1soIZ%2F-MJgQep7B6pUsc9eW3Ax%2Fredevent_params.png?alt=media\&token=fe3f8c44-a550-4dfa-bbb2-2623fdb14d10)

Params

* **Hide Past Events** : This option enables you to display or not the past events in the Event selection.
* **Event Template** : By default, AcyMailing will replace the inserted tag by the event description but you can create your own event template by filling this parameter on the plugin configuration. You can insert html code and tags which will be replaced by the content of the inserted event.


---

# 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.acymailing.com/old/integration-plugins/events/plugin-redevent.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.
