We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18273
    • 3 Posts
    Hi,

    I am currently moving our corporate website over to Modx. The only bit I am struggling to emulate is this page.

    http://www.redstonemanaged.co.uk/news.html

    How do I get the respective Month Headings to show before a specific news item?

    E.g

    December 2008
    News Article 1

    November 2008
    News Article 2
    News Article 3


    I know I can use ditto to group them together, but I can’t get the Month to show before the article link?

    Many Thanks

    Marcus

      • 36926
      • 701 Posts
      Are you grouping all your news articles together or are you have a parent for each month?

      Not sure if you can nest ditto calls but does the following work?

      Structure:

      -News
      -Jan
      -article 1
      -article 2
      -Feb
      -Article 1
      -Article 2

      then have a ditto call within the news page the displays all the children l level deep and the contents of each child.

      The in the content of each month have another ditto call that gets that containers children.

      Not tired this and not sure if it’s possible but might be worth a try. Other than that there maybe somthing you can do with phx.

      Ben