# \[Tera\] How to access fields of \`\_\_tera\_context\`?

**URL:** <https://zola.discourse.group/t/tera-how-to-access-fields-of-tera-context/1129>\
**Category:** Support\
**Created:** [January 2, 2022, 4:51pm UTC](https://zola.discourse.group/t/tera-how-to-access-fields-of-tera-context/1129 "2022-01-02T16:51:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rootkea](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/rootkea/32/518_2.png) [@rootkea](https://zola.discourse.group/u/rootkea)\
**Post date:** [January 2, 2022, 4:51pm UTC](https://zola.discourse.group/t/tera-how-to-access-fields-of-tera-context/1129/1 "2022-01-02T16:51:08Z")

</div>

Hello!

When I tried to access `__tera_context["current_path"]` (using `{{__tera_context["current_path"] }}`) it gave following error:

```auto
Variable `__tera_context["current_path"]` not found in context

```

But I can see `"current_path"` field in `__tera_context` (using `{{__tera_context }}`).

Thanks!

---

<div class="post-metadata">

**Author:** ![mikekasprzak](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/mikekasprzak/32/665_2.png) [@mikekasprzak](https://zola.discourse.group/u/mikekasprzak)\
**Post date:** [January 26, 2022, 8:07pm UTC](https://zola.discourse.group/t/tera-how-to-access-fields-of-tera-context/1129/2 "2022-01-26T20:07:30Z")

</div>

To print `__tera_context["current_path"]` you print `current_path`. i.e.

```auto
{{current_path}}

```

😉

`__tera_context` is a magic variable (maybe more of a function) that prints everything in the global scope. To access anything there, you just use it.
