# toPlaceholder is not accepting other text and classes without placeholder content

**URL:** <https://community.modx.com/t/toplaceholder-is-not-accepting-other-text-and-classes-without-placeholder-content/6096>\
**Category:** Random\
**Created:** [November 29, 2022, 8:38am UTC](https://community.modx.com/t/toplaceholder-is-not-accepting-other-text-and-classes-without-placeholder-content/6096 "2022-11-29T08:38:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark537](https://community.modx.com/user_avatar/community.modx.com/mark537/32/3194_2.png) [@mark537](https://community.modx.com/u/mark537)\
**Post date:** [November 29, 2022, 8:38am UTC](https://community.modx.com/t/toplaceholder-is-not-accepting-other-text-and-classes-without-placeholder-content/6096/1 "2022-11-29T08:38:52Z")

</div>

```auto
[[getImageList? &tvname=`accordion_sec` &tpl=`accordion` &toPlaceholder=`pfleg_accordion_v2`]]

[[+pfleg_accordion_v2:!empty=`
    <div class="container">
        [[+pfleg_accordion_v2]]
    </div>
`]]

```

Here It has a container class but it’s not showing in the browser.

 ![image](https://modx-community.s3.dualstack.us-east-1.amazonaws.com/original/2X/f/f0fdeae4735e01a07679fe9d298078fba0f247ee.png)

---

<div class="post-metadata">

**Author:** ![halftrainedharry](https://community.modx.com/user_avatar/community.modx.com/halftrainedharry/32/1063_2.png) [@halftrainedharry](https://community.modx.com/u/halftrainedharry)\
**Post date:** [November 29, 2022, 9:14am UTC](https://community.modx.com/t/toplaceholder-is-not-accepting-other-text-and-classes-without-placeholder-content/6096/2 "2022-11-29T09:14:45Z")

</div>

I can’t reproduce this. What version of MODX do you use?

* * *

Also, maybe you could use the `&wrapperTpl` property instead:

```nohighlight
[[getImageList? &tvname=`accordion_sec` &tpl=`accordion` &wrapperTpl=`@CODE:<div class="container">{{+output}}</div>`]]

```

---

<div class="post-metadata">

**Author:** ![mark537](https://community.modx.com/user_avatar/community.modx.com/mark537/32/3194_2.png) [@mark537](https://community.modx.com/u/mark537)\
**Post date:** [November 29, 2022, 9:43am UTC](https://community.modx.com/t/toplaceholder-is-not-accepting-other-text-and-classes-without-placeholder-content/6096/3 "2022-11-29T09:43:34Z")

</div>

> [@halftrainedharry](#):
>
> `[[getImageList? &tvname=`accordion\_sec` &tpl=`accordion` &wrapperTpl=`@CODE:
> 
> {{+output}}
> `]]`

Thank you. You made my day. It’s working fine.

Could you please help me to solve [this](https://community.modx.com/t/virtunewsletter-setup/6088/2) issue?
