We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30793
    • 6 Posts
    Hi, hope someone can help as I’m at a loss.

    I’ve built my site using Modx Revolution and have added a blog as per the blog tutorial on this site. The problem I am having is at the top of each post the date it was published is displayed, but instead of displaying the date of the resource, it displays the date of the page it’s showing up on. Ie. If I click on ’blog’ in the menu, all the posts display the date that the blog resource was published, you only get the true dates when you click on each post to read more. My website is at www.matt-wade.co.uk

    I think it’s a problem with the <h1>[[*publishedon:strtotime:date=`%b %d, %Y`]]</h1> bit of code. Any ideas, I’m tearing my hair out with this one

    cheers in advance

    Matt
      • 22427
      • 793 Posts
      The headline of the post should be
      <h1>[[+publishedon:strtotime:date=`%b %d, %Y`]]</h1>
      ( + instead of * ).
      A page variable like [[* ... ]] always refers to the document where you put it in, and if it occurs several times on the page it of course will show always the same value.
        • 30793
        • 6 Posts
        thanks ottogal, that’s fixed it.

        Matt