We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7293
    • 12 Posts
    I’m trying to get Ditto to work on our production server and getting the following output instead:
    &tpl either does not contain any placeholders or is an invalid chunk name, code block, or filename. Please check it.

    Here is my Ditto call inside a Template:
    [[Ditto? &parents='4' &tpl='grid_block' ]]


    I have a Chunk called ’grid_block’ defined as:
    <div id="grid_block">
        <h2>[+pagetitle+]</h2>
        <div id="gridlayout_image"><img src="[+introimage+]" /></div>
        <span class="bodycopy">[+introtext+]</span> 
    </div>


    Now, I tried using almost this same code on my test server, and it worked fine (the actual chunk is slightly different as is the chunk name, but I don’t see anywhere that would matter.

    Can anyone suggest a problem with my call or point me in a new direction? I’ve tried searching the forums and the docs, and haven’t found anything that helped yet.

    Thanks!

    Daniel
      • 7455
      • 2,204 Posts
      try this:
      [[Ditto? &parents=`4` &tpl=`grid_block` ]]

      you need to use backtics ` instead of ’

      dimmy
        follow me on twitter: @dimmy01
        • 7293
        • 12 Posts
        dimmy, my friend, you are a lifesaver! That worked perfectly. Thanks for much for the prompt and simple solution.

        Daniel