# Putting TV (template variable) into chunks that show up on multiple pages?

**URL:** <https://community.modx.com/t/putting-tv-template-variable-into-chunks-that-show-up-on-multiple-pages/2855>\
**Category:** Support\
**Created:** [July 10, 2020, 4:57pm UTC](https://community.modx.com/t/putting-tv-template-variable-into-chunks-that-show-up-on-multiple-pages/2855 "2020-07-10T16:57:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brittislove](https://community.modx.com/user_avatar/community.modx.com/brittislove/32/270_2.png) [@brittislove](https://community.modx.com/u/brittislove)\
**Post date:** [July 10, 2020, 4:57pm UTC](https://community.modx.com/t/putting-tv-template-variable-into-chunks-that-show-up-on-multiple-pages/2855/1 "2020-07-10T16:57:52Z")

</div>

Hello

I’ve been reading documents and old forum posts, and am still having a difficult time understanding how to do this. I’d prefer not to use the @INHERIT ability as I fear clients wouldn’t know how to nest a resource and would prefer to keep to keep it simple for them.

Here is what I am attempting, from my understanding.

**page code:**  
[[!$intro? &name=`[[*usersName]]` &count=`[[*messageCount]]`]]

**Chunk code:**  
\<p\>  
Hello [[\*name]], you’ve got [[\*count]] mesages  
\</p\>

Maybe it isn’t working because I did not give the TV any access to a chunk? If so, I do not know how to do that. Maybe my understanding of the code is wrong.

---

<div class="post-metadata">

**Author:** ![markh](https://community.modx.com/user_avatar/community.modx.com/markh/32/36_2.png) [@markh](https://community.modx.com/u/markh)\
**Post date:** [July 10, 2020, 5:01pm UTC](https://community.modx.com/t/putting-tv-template-variable-into-chunks-that-show-up-on-multiple-pages/2855/2 "2020-07-10T17:01:29Z")

</div>

Use tags with a plus instead of an asterisk inside the chunk:

```auto
Hello [[+name]], you’ve got [[+count]] mesages

```

By passing in the value to the chunk as a property, it becomes a placeholder inside the chunk.

---

<div class="post-metadata">

**Author:** ![brittislove](https://community.modx.com/user_avatar/community.modx.com/brittislove/32/270_2.png) [@brittislove](https://community.modx.com/u/brittislove)\
**Post date:** [July 13, 2020, 5:48pm UTC](https://community.modx.com/t/putting-tv-template-variable-into-chunks-that-show-up-on-multiple-pages/2855/3 "2020-07-13T17:48:01Z")

</div>

Thanks for the response. I got it working (it takes a while for me, I work in an open office and cannot focus). Got it working, but I am losing the template variable info when navigating unfortunately. I think I’ll have to try the @INHERIT route that Bob had mentioned in another post

**EDIT:** I like editing my comments so I can refer to them later, reminders for myself, and also for any other struggling newbie modx developer out there.

I’m a dingus. Here is the exact code that works for me, **but also be sure to give your template variables access to the templates they need to be on.**

`[[*loan-officer-name]]` is the name of the template variable

This goes on template website

```auto
[[!$info-chunks? &name=`[[*loan-officer-name]]`]]

```

This goes on the chunk

```auto
<h1 class="center-text">[[+name]]</h1>

```
