---
title: 'How to access variables for simple-events in a Twig template'
url: 'https://getgrav.org/forum/support/how-to-access-variables-for-simple-events-in-a-twig-template-t6997'
markdown: 'https://getgrav.org/forum/support/how-to-access-variables-for-simple-events-in-a-twig-template-t6997.md'
date: '2026-06-21'
description: "Hi there, I'm quite new to the world of Grav after some small personal projects in Drupal (long time ago), Hugo and Jekyl. I need the ease of content creation"
---

[Support](https://getgrav.org/forum/support)

#  How to access variables for simple-events in a Twig template 

 [first-time](https://getgrav.org/forum/tag/first-time) [plugin](https://getgrav.org/forum/tag/plugin) [plugins](https://getgrav.org/forum/tag/plugins) [twig](https://getgrav.org/forum/tag/twig)

  Started by Marcel de Haas 2 years ago · 2 replies · 626 views    

 [2 years ago](https://getgrav.org/forum/support/how-to-access-variables-for-simple-events-in-a-twig-template-t6997#post-39222 "Permalink") 

Hi there,

I'm quite new to the world of Grav after some small personal projects in Drupal (long time ago), Hugo and Jekyl. I need the ease of content creation for some none technical users but love the portable setup of Grav.
I have installed the simple-events plugin and modified the overview page of events to create links so I can present the single event. I am writing the template for the single event now but I don't understand how I can get to the values of the plugin. I have tried all the ways I could think of but for example the location will always return '0'

```twig
    {{ dump(page) }}

    <h1>Naam: {{ page.title }}</h1>
    Naam: {{ page.header.title }}<br/>
    <h3>Datum: {{ page.header.date }}</h3>
    Locatie: {{ page.header.location }}<br/>
    Start: {{ page.simple-events.start }} <br/>
    Start: {{ page.header.simple-events["start"] }}<br/>

```

Here is a screenshot with the dump in the debugger:
![image|547x499](https://cdn.getgrav.org/forum/files/d1/d130bd094fd26581beefda486e0ff700753db0293e27dcc0e4c4167ffb267eca.png)

Can anybody point me in the right direction to access these values?

Kind regards,
Marcel

 [2 years ago](https://getgrav.org/forum/support/how-to-access-variables-for-simple-events-in-a-twig-template-t6997#post-39230 "Permalink") 

You can access the event values using {{ page.header.simple\_event.location }} instead of {{ page.simple-events.start }}. Ensure your plugin is correctly configured to pass the right header values.

 [2 years ago](https://getgrav.org/forum/support/how-to-access-variables-for-simple-events-in-a-twig-template-t6997#post-39235 "Permalink") 

> **@mdehaas:**
> the location

If you need get the page URL, try this: {{ page.url() }}

[Log in](https://getgrav.org/login?return=%2Fforum%2Fsupport%2Fhow-to-access-variables-for-simple-events-in-a-twig-template-t6997) to reply.

###  Suggested topics

 | Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| [retina images are shown in Admin (but not all of them)](https://getgrav.org/forum/support/retina-images-are-shown-in-admin-but-not-all-of-them-t9504)    [Support](https://getgrav.org/forum/support) · by Anna, 4 days ago |  | 1 | 82 | [3 days ago](https://getgrav.org/forum/support/retina-images-are-shown-in-admin-but-not-all-of-them-t9504 "by Anna") |
| [page.date != page.header.date, now my collection sorting is broken (bug? by design?)](https://getgrav.org/forum/support/page-date-page-header-date-now-my-collection-sorting-is-broken-bug-by-design-t9484)    [Support](https://getgrav.org/forum/support) · by Anna, 3 weeks ago |  | 1 | 259 | [3 weeks ago](https://getgrav.org/forum/support/page-date-page-header-date-now-my-collection-sorting-is-broken-bug-by-design-t9484 "by Anna") |
| [it's no possible sign in with email......](https://getgrav.org/forum/support/it-s-no-possible-sign-in-with-email-t9462)    [Support](https://getgrav.org/forum/support) · by webmasterodp, 1 month ago |  | 4 | 377 | [1 month ago](https://getgrav.org/forum/support/it-s-no-possible-sign-in-with-email-t9462 "by webmasterodp") |
| [Site stopped working overnight - 'not writeable' error](https://getgrav.org/forum/support/site-stopped-working-overnight-not-writeable-error-t9445)    [Support](https://getgrav.org/forum/support) · by nwhitfield, 1 month ago |  | 2 | 348 | [1 month ago](https://getgrav.org/forum/support/site-stopped-working-overnight-not-writeable-error-t9445 "by pamtbaau") |
| [MIgrating to 2.0](https://getgrav.org/forum/support/migrating-to-2-0-t9437)    [Support](https://getgrav.org/forum/support) · by stell, 2 months ago |  | 5 | 649 | [1 month ago](https://getgrav.org/forum/support/migrating-to-2-0-t9437 "by stell") |
