# Events

### Loop only on events of a specific category

```
#$loop|{events,[category_events_mb_id=#$variable|category$#]}|{a}|$#
    {a.name}  
#$/loop|{events,[category_events_mb_id=#$variable|category$#]}|{a}|$#

```

Create a new variable to allow user to select the wanted category from the BO. This variable should be setup with unit type and "category\_events\_mb" as module name.&#x20;

{% hint style="info" %}
If not any category has been select, the loop will display events from all categories
{% endhint %}
