We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6595
    • 20 Posts
    I am doing a page with news stories on it but whenever I add a new blog, it automatically goes into the news page on my site.Basically I want to know is there any way of selecting which blogs you want to display on the page. Heres the piece of code I think is the problem.

    <h1>News </h1>[!Ditto?startID=`20` &amp;display=`all` &amp;dateFormat=`%d-%b-%y %I:%M %p` &amp;debug=`0` &amp;total=`all` &amp;tpl=`BlogTemplate`!]

    The bit where it says ’display all’ - can I change that to say something like ’last 3’ news stories or something like that.

    Its really annoying me!
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Yes. Change it to &display=`3` and I believe it will display the three latest by date by default.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 6595
        • 20 Posts
        cheers that worked.