We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 49710
    • 92 Posts
    Ok, thats clear. Bu I am still struggling with the thing that pdpResources will not execute inside the IF.


      • 38783
      • 571 Posts
      Does it make any difference if you call one or both snippets uncached?

      [[!If?


      [[!pdoResources?
        If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

        email: [email protected] | website: https://andytough.com
        • 4172
        • 5,888 Posts
        both should be called and working cached in this situation.

        [[[[If?
           &subject=`[[*tt.ison]]`
           &operator=`EQ`
           &operand=`Ja`
           &then=`$theChunk`
        ]]]]
        
        


        this didn't show anything, what is in theChunk?

        or only didn't run pdoResources.
        In any case, this syntax is the better one. Otherwise the pdoResources will run everytime and will run before the if-snippet, which might brake the parsing of the if-snippet-call.
          -------------------------------

          you can buy me a beer, if you like MIGX

          http://webcmsolutions.de/migx.html

          Thanks!
          • 49710
          • 92 Posts
          Thank you. Now it seems that alls work fine. The solution is so:
          [[[[If?
             &subject=`[[*tt.ison]]`
             &operator=`EQ`
             &operand=`Ja`
             &then=`$chunk`
          ]]]]


          chunk:

          <div class="top-topic-card top-spacer">
             <div class="container">
                <h3 class="tt"><span class="tt-label">[[*tt.label]]</span></h3>
                  <h4 class="tt">[[*tt.titel]]</h4>
                   <div class="row">
          
           	 [[pdoResources?
                      &limit=`4`
                      &includeContent=`1`
                      &prepareTVs=`1`
                      &processTVs=`article.picture`
                      &includeTVs=`article.portal,article.start,article.kategorie,article.picture,article.hascolor,article.label`
          	    &parents=`7`
                      &resources=`[[*tt.articles]]`
                      &tpl=`tpl.post-tt`
                   ]]
          
           
              </div>
             </div> 
          </div>
            • 4172
            • 5,888 Posts
            great! I'm glad you got it working now!
              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!
              • 49710
              • 92 Posts
              Tanks, für your help.