We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21092
    • 54 Posts
    Hey everyone,
    I am having a huge noob moment and can’t remember how to create a basic blog for revolution - been too long since I used Modx...
    I basically want for now a header, that links to the page containing full information, summary text, and a read more link to the full information.
    I am using the lastest beta version of Revolution.
    I installed Ditto as a package.

    Currently I have a chunk called "BlogTemplate" with the following code
    <h3>
    <a href="[[~[[+id]]]]" title="[[+title]]">[[+title]]</a>
    </h3> <!-- link to blogs article with it's title (link is title) -->
     
    By <strong>[[+author]]</strong> on [[+date]].
    
    Summary: [[+introtext]]
    <br />
    Link: [[+link]]


    I then have the main call on a container in the resource tree with the following code:
    [[!Ditto? &parents=`20` &introtext=`2` &total=`20` &tpl=`BlogTemplate`]]


    I am getting the following error on my webpage
    &tpl either does not contain any placeholders or is an invalid chunk name, code block, or filename. Please check it.


    What am I doing wrong? Can someone please help provide the code that I need - as far as I am aware it should be pretty basic. I have been searching for quite a while online now, and unfortunately just can’t get anywhere - even by following the basic tutorials (thus I think its probably a noob fault in my code).

    Thanks in advance,
    Kathleen
      Visit www.katskinner.com for all your expert novel writing tips, tutorials and more.
      • 34193
      • 330 Posts
      Looks good to me, to be honest I have been having issues with Ditto in revo and so have been using getResources to do my blog stuff.