We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16610
    • 634 Posts
    Not really sure if this is a bug, feature or just my incompetence...

    Multiple hiddenTVs in production mode don’t work.

    This works: &hiddenTVs=`Keywords` &mode=`production`
    This dont’t work: &hiddenTVs=`Keywords,Thumb,Language` &mode=`production`

    If mode is changed to development everything works ok.

    Keywords TV is used for tagging if that matters anything.
      Mikko Lammi, Owner at Maagit
      • 18397
      • 3,250 Posts
      You are correct, this is a bug. Please change this line:

      $TVnames = ($mode != "development") ? $hiddenTVs : $ditto->findAllTVs($templates, $hiddenTVs, $filter);
      


      to this to make it work:

      $TVnames = ($mode != "development") ? array_unique(explode(",",$hiddenTVs)) : $ditto->findAllTVs($templates, $hiddenTVs, $filter);
      
        • 16610
        • 634 Posts
        Thank you Mark, you are doing outstanding job with Ditto! Corrected line works great.
          Mikko Lammi, Owner at Maagit
          • 29635
          • 361 Posts
          The Man Can! Reply #4, 20 years ago
          Oh my gosh. I just spent ... I don’t know, a long time trying to figure out what the heck was going on. I thought I just couldn’t get the tagging right.

          EDIT: Sorry, have been catching up on current versions and just found both 1.0.3 and 1.1 beta, so this post was probably pointless. My bad.
            Need MODx Ecommerce? Try FoxyCart!