toPlaceholder is not accepting other text and classes without placeholder content

[[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.

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


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

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

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

Could you please help me to solve this issue?