We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12238
    • 10 Posts
    Somehow, I can’t use chunks on my new installation of Modx Revolution. I have seen the problem the whole day when adding simple chunks to the templates, and they are not displayed at all. But the evidence I got when using Ditto and adding a chunk to the &tpl parameter: The following gets is printed:
    &tpl either does not contain any placeholders or is an invalid chunk name, code block, or filename. Please check it.

    I Have checked the name, and that is correct. The chunk itself is fine:
    <div class="post">
    <h3>[+pagetitle+]</h3>
    [+content+]
    </div>

    Any Ideas where I can fix this issue?

      • 4172
      • 5,888 Posts
      you need to change your tags in revo like that:

      <div class="post">
      <h3>[[+pagetitle]]</h3>
      [[+content]]
      </div>


      See: http://rtfm.modx.com/display/revolution20/Tag+Syntax

      You should replace Ditto by getResources in Revo.
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 1778
        • 659 Posts
        hi,
        I think the problem is in your syntax....
        In Revo you have to call the chunks like that [[$myChunk]], the placeholders like that [[+myplaceHolder]] ...Have a look at http://rtfm.modx.com/display/revolution20/Tag+Syntax, you can see differences between Evo an Drevo.
        Hope this helps
        Cheers
          • 12238
          • 10 Posts
          Thanks to you both! Seems to fix the issues!