# Access to global context in partial which define in other partial that have context

**URL:** <https://discourse.gohugo.io/t/access-to-global-context-in-partial-which-define-in-other-partial-that-have-context/12538>\
**Category:** Uncategorized\
**Created:** [June 20, 2018, 12:31am UTC](https://discourse.gohugo.io/t/access-to-global-context-in-partial-which-define-in-other-partial-that-have-context/12538 "2018-06-20T00:31:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tania](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@tania](https://discourse.gohugo.io/u/tania)\
**Post date:** [June 20, 2018, 12:31am UTC](https://discourse.gohugo.io/t/access-to-global-context-in-partial-which-define-in-other-partial-that-have-context/12538/1 "2018-06-20T00:31:45Z")

</div>

- index.md

```auto
 sections = [“features”, ‘’…’’]
[features]
template = feature.html
[[feature]]
icon = “…/img/features/token_icon.svg”
label = “Built for the new token economy”
[[feature]]
icon = “…/img/features/experience_icon.svg”
label = “Optimized for the best experience”

```

- index.html

```auto
{{ range .Param “sections” }}
{{ $section := $context.Param . }}
{{ partial $section.template (dict “context” . “section” $section)}}
{{ end }}

```

partial “feature.html” has “nav.html.”  
in this case, not working global context access in “nav.html”

```
{{ range $.Site.Main.menus }}

```

and also not working Params in feature.html

```
{{ range .Params.feature }}
   {{ .icon }}
   {{ .label }}
{{ end }}

```

Please let me know kindly who have idea for this.  
Thanks
