We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 41049
    • 35 Posts
    I added a TV named catalogue_product_image for adding an additional image. Than I try to show it in tpl.msProducts.row with this line <img src="[[+tv.catalogue_product_image]]"/>

    but I get empty string.

    Any ideas what am I doing wrong?
      • 42046
      • 436 Posts
      Have you added:

      &includeTVs=`catalogue_product_image`


      to your msProducts call?
        • 41049
        • 35 Posts
        Where should I put this?
          • 42046
          • 436 Posts
          In your msProducts call on the page you're listing the products on. Something like:

          [[!msProducts?
          &includeTVs=`catalogue_product_image`
          ]]


          msProducts is based on pdoResources (part of pdoTools) and can accept all (I think) of the same options but has the same restrictions like excluding all TVs unless they're specifically specified.
            • 41049
            • 35 Posts
            I have put this in resources in settings of MS2 category

            [[!pdoPage?
            &element=`msProducts`
            &includeTVs=`catalogue_product_image`
            &limit=`5`
            ]]

            and i still get nothing
              • 41049
              • 35 Posts
              Sorry .. made a mistake with file system .. its working great now smiley

              thanks for help!