We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42465
    • 33 Posts
    Just an update on this. Have no idea why, but if I use the default output modifier then it works.

    <div class="image"><a href="[[~[[+id]]]]"><img src="[[+tv.blogThumbnail:default=`assets/templates/default/img/logo_blog.png`]]" /></a></div>

    Using a different modifier

    Go figure!

    Thanks for the help
      • 42562
      • 1,145 Posts
      Glad you got your thing working. The default is a quick one-liner, although some argue the is/then/else is better on performance, especially when the double brackets are exploded

      So, you don't have to use the default modifier. Try this call:
      <img src="[[+tv.blogThumbnail:is=``:then=`assets/templates/default/img/logo_blog.png`:else=`[[+tv.blogThumbnail]]`]]" />


      Or to be more efficient? Chuck the default image url into a tiny chunk [[$defualt-image]]
      <img src="[[[[+tv.blogThumbnail:is=``:then=`$default-image`:else=`+tv.blogThumbnail`]]]]" />
        TinymceWrapper: Complete back/frontend content solution.
        Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
        5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.