We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17013
    • 5 Posts
    In some pages I use a snippet to dynamically charge some information.
    In case A, this snippet display a list of items
    In case B, it display only one item.

    I want - in case B only - to purge all other content of [[*content]] to only display the item.
    In other word: replace all [[*content]] with the snippet result, but preserving and render all other elements of the template.

    Using $modx->resource->_output allow to replace all output and doesn't help me.

    Has anybody done this before? Without using a plugin on event like OnWebPagePreRender...

    Thanks for any help