# Weird issue with template accessing params

**URL:** <https://discourse.gohugo.io/t/weird-issue-with-template-accessing-params/13405>\
**Category:** support\
**Created:** [August 7, 2018, 1:58pm UTC](https://discourse.gohugo.io/t/weird-issue-with-template-accessing-params/13405 "2018-08-07T13:58:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![benmarte](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/benmarte/32/5948_2.png) [@benmarte](https://discourse.gohugo.io/u/benmarte)\
**Post date:** [August 7, 2018, 1:58pm UTC](https://discourse.gohugo.io/t/weird-issue-with-template-accessing-params/13405/1 "2018-08-07T13:58:38Z")

</div>

So I have this weird issue with passing params to a template I am using on a Taxonomy page.

When I do this: `{{partial "header" .}}`

It does not render any of the params in `.` but if I do this: `{{partial "header" .Page}}` it displays my page params.

If I use the same template on a regular page I can access the page params without any issues, do taxonomy templates work different?

Is this some weird issue I’m running into or am I doing something wrong?

Thanks.

---

<div class="post-metadata">

**Author:** ![Jura](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jura/32/13581_2.png) [@Jura](https://discourse.gohugo.io/u/Jura)\
**Post date:** [August 7, 2018, 3:34pm UTC](https://discourse.gohugo.io/t/weird-issue-with-template-accessing-params/13405/2 "2018-08-07T15:34:42Z")

</div>

> [@benmarte](#):
>
> So I have this weird issue with passing params to a template I am using on a Taxonomy page.
> 
> When I do this: `{{partial "header" .}}`
> 
> It does not render any of the params in `.` but if I do this: `{{partial "header" .Page}}` it displays my page params.

I don’t think that a taxonomy page has access to [page variables](https://gohugo.io/variables/page/). That would explain why passing `.` doesn’t give you page variables like `.WordCount`, but passing `.Page` would. Right?

But that’s also a bit of speculation on my part, because without seeing the code we can guess at best.

---

<div class="post-metadata">

**Author:** ![benmarte](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/benmarte/32/5948_2.png) [@benmarte](https://discourse.gohugo.io/u/benmarte)\
**Post date:** [August 7, 2018, 3:56pm UTC](https://discourse.gohugo.io/t/weird-issue-with-template-accessing-params/13405/3 "2018-08-07T15:56:33Z")

</div>

That makes sense but I made a section called `Jobs` and put an `_index.md` file and assigned the layout in the front matter to this template so in theory it should have access to the page variables again maybe I’m misunderstanding or just doing something wrong which is why I’m posting here to see if anyone else has had this issue before and so I can learn.

Thanks for replying.

---

<div class="post-metadata">

**Author:** ![Jura](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jura/32/13581_2.png) [@Jura](https://discourse.gohugo.io/u/Jura)\
**Post date:** [August 7, 2018, 4:05pm UTC](https://discourse.gohugo.io/t/weird-issue-with-template-accessing-params/13405/4 "2018-08-07T16:05:05Z")

</div>

> [@benmarte](#):
>
> issue with passing params to a template I am using on a Taxonomy page.

> [@benmarte](#):
>
> That makes sense but I made a section called `Jobs` and put an `_index.md` file and assigned the layout in the front matter to this template so in theory it should have access to the page variables again maybe I’m misunderstanding or just doing something wrong which is why I’m posting here to see if anyone else has had this issue before and so I can learn.

But a taxonomy page itself doesn’t have access to those page params variables, as far as I know. You can access when you range over posts with a certain taxonomy term on that taxonomy page, but the taxonomy page itself doesn’t have access to them.

Say you make the `content/jobs/_index.md` page and that page has the `job_location` variable and is tagged `remote-work`. But the taxonomy term page at `/tags/remote-work/` doesn’t have that params because it’s a meta page: it contains all content tagged `remote-work` from _any section_, not specific to `/jobs/`.

Do you perhaps mixed [taxonomy pages](https://gohugo.io/templates/taxonomy-templates/#readout) and [section pages](https://gohugo.io/templates/section-templates/#readout)? Because a section page _can_ access the data in `content/jobs/_index.md` because that `_index.md` renders the section page itself.

(I hope this makes sense. I don’t explain it very well I’m afraid. 🙂)

---

<div class="post-metadata">

**Author:** ![benmarte](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/benmarte/32/5948_2.png) [@benmarte](https://discourse.gohugo.io/u/benmarte)\
**Post date:** [August 7, 2018, 4:32pm UTC](https://discourse.gohugo.io/t/weird-issue-with-template-accessing-params/13405/5 "2018-08-07T16:32:59Z")

</div>

Yeah I guess I am mixing the two but I want to be able to tag jobs by department, also I use this same setup for another section on this same site and it works fine which is really weird.
