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

    My site structure:

    /home/
    /About us
    /Services
    /Contacts
    /News
    -main news 1
    -main news 2
    -main news ...
    -main news n
    /About us
    -about us news 1
    -about us news 2
    -about us news ...
    -about us news n
    /Services
    -services news 1
    -services news 2
    -services news ...
    -services news n

    Question:

    If user stay on page "Services" how to show Services news (News->Services->service news n)

    P.S. Sorry for my bad english.
      • 9207 ☆ A M B ☆
      • 2,475 Posts
      Have you looked at the ListIndexer Snippet? It is included with MODx. You call it with something like this:
      [!ListIndexer?LIn_root=`34` &LIn_sQty=`5` !]

      Where 34 is the document id of your News/Services page.

      You can change its settings so it returns the date or the description from the documents. If you need more flexibility, you can use Ditto or WayFinder.