We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36629
    • 3 Posts
    I’m creating a custom TV and I’d like it to be able to output multiple values: [[*myTV.id]], [[*myTV.title]] etc. (Similar to how [[+modx.user.id]] works.)

    I’ve created a class in my custom output type, so now when I include [[*myTV]] it outputs "Object". I can’t seem to access any of the properties, though. The above syntax doesn’t return anything.

    Ideas? I assume I could just set placeholders in the TV output code, but that feels like cheating. smiley