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

    I am using the NewsListing snippet with the following simple chunk:

    <a href="[+id+]">[+longtitle+]</a>

    All i need to do now is have the date proceed the news title link in the following format:

    31.08.06 (date/month/year)

    If possible, I would also like to have the date colour set different to the title, is it a case of adding a span around the date tag?

    Appreciate any help.

    Thanks
    Lee
      http://www.blend.uk.com | Web Design by Blend
      • 33337
      • 3,975 Posts
      NewsListing is depreceated in favour of Ditto, grab it and read the appropriate documentation: http://modxcms.com/ditto_documentation.html , in addition, a handy list of Ditto parameters: http://modxcms.com/ditto_parameters.html

      Hope you’ll get what you want smiley.

      Best regards,

      zi
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 17717
        • 433 Posts
        I actually got it working, I will take a look at ditto now though smiley

        Thanks zi,

        Lee
          http://www.blend.uk.com | Web Design by Blend
          • 33337
          • 3,975 Posts
          Glad to hear!

          Would you like to share the solution with us also ? there might be other users who wants to do exactly smiley

          @Ditto: It is so much powerfull, faster, optimized than NewsListing and has web2.0 features also wink (e.g. JSON output, tag support etc.)

          Best regards.

          zi
            Zaigham R - MODX Professional | Skype | Email | Twitter

            Digging the interwebs for #MODX gems and bringing it to you. modx.link
            • 17717
            • 433 Posts
            oooh Ditto sounds good, just finishing off something else on the site, will try ditto when I am done with that. In terms of what I wanted to do, I simply created a chunk with the following code:

            <a href="[+id+]"><span>[+date+]</span> // [+longtitle+]</a>

            Very simple but it looks and functions exactly how I would want it to. The next is to get it to look the same with Ditto, I would then like to integrate RSS on this page with the news links.

            Thanks
            Lee
              http://www.blend.uk.com | Web Design by Blend

            This discussion is closed to further replies. Keep calm and carry on.