We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13825
    • 55 Posts
    Has anyone else seen this problem and is there a solution?

    I’m using Ditto 1.1b2 here’s the call:

    					[[Ditto?&startID=`0`&filter=`id,[*spotlight*]`&tpl=`spotlight-item`&depth=`99`&hiddenTVs=`tvuse-page-summary`&debug=`1`&mode=`production` ]]


    this basically allows me to pull a summary onto the home page from any document i.e. promote a document.
    However I each document has the option to use a the standard [+introtext+] or a custom summary (a tv textarea field)

    So I’ve given the Ditto call access to the tv "tvuse-page-summary" which is either 1 or 0;

    here is part of the chunk:
    [+phx:if=[+tvuse-page-summary+]:is=`1`:then=`[+introtext+]`:else=`[+tvcustom-summary+]`+]


    make sense?...

    It doesn’t work! but if I put [+tvuse-page-summary+] anywhere in the chunk it does - its as if phx or ditto cant see [+tvuse-page-summary+] when its used in the phx conditional check but if it’s used outside it it does.

    I also ran a debug with didn’t list [+tvuse-page-summary+].
    which is why I added it as a hiddentv but that didn’t work either.

    any ideas?

    Thanks.
      • 18397
      • 3,250 Posts
      Simple test:

      Put this in your template and see if it works:

      <div style="display:none">
      [+tvuse-page-summary+]
      [+introtext+]
      [+tvcustom-summary+]
      </div>
      


      P.S. Please post in the Ditto subforum for a quicker response