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

    Please see the attached 2 screenshots... How can I add a horizontal line as shown in the Screenshot (which page do I have to edit?)

    And also, How do I add a date-stamp to my news/articles, like MODx is doing on their newspage (it doesn’t have to look like theirs - I just want a date/time stamp) smiley

    Thanks for your help, everyone.

    Soren
      • 33337
      • 3,975 Posts
      Hi Soren,

      For the 1st, u need to use [!DateTime!] snippet, I cant recall exact name but please search in the resources.

      2nd: You need to edit the ditto template chunk, now again I dont know what name your current chunk has but you will need to add <hr/> in that chunk template.

      Hope this helps.
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 28025
        • 50 Posts
        Thanks, Zi. I’ll try that and see where it takes me smiley

        Cheers,
        Soren

          • 7231
          • 4,205 Posts
          You can also add the published date [*pub_date*], created on date [*createdon*] and the edited date [*editedon*] document variable.

          I guess that you could then use the DateTime snippet to display the publish date by including it in the call:

          [!DateTime? &timestamp=`[*pub_date*]`!]
            [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

            Something is happening here, but you don&#39;t know what it is.
            Do you, Mr. Jones? - [bob dylan]
            • 28025
            • 50 Posts
            That is awesome! Thanks a lot!

            Soren smiley
              • 28025
              • 50 Posts
              thanks, dev_cw for the snippets before. Here’s the dumb question of the day: Do I just copy that snippet from your post and paste it for example underneath my headline in the article?

              Please see attached screenshot...

              THANKS,
              Soren

                • 28025
                • 50 Posts
                Please disregard - it is resolved... Thank you dev_cw!


                All the best,
                Soren