We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 49562
    • 25 Posts
    hi

    TV image is not shown in a template calling snippet. TV belongs to this template
    Snippet call: [[!getLogo]]
    Snippet code:
    return $modx->getObject('modResource', 4)->getTVValue('logo');

    help
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      It doesn't matter what template the TV is assigned to when it's being displayed. It only matters when editing resources.

      Are you sure the resource you want to get the TV value from is resource #4? And are you sure that resource #4 has a value in the 'logo' TV?
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 49562
        • 25 Posts
        it works, thanx