On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • All my dates seem to comeout like this:

    <lastmod>1970-01-01</lastmod>


    Errr?
    • What version of MODx, and post your ditto call, and the TPL
        ~Shawn Himmelberger
        Check out my MODx Development and MODx Design Company - Himmelberger Design
      • Edit: Ignore embarrassed
        • I’m a bit confused, I use friendly urls, works fine.
            ~Shawn Himmelberger
            Check out my MODx Development and MODx Design Company - Himmelberger Design
          • andrew.abogado Reply #35, 10 years ago
            I’m having the same problem. The lastmod outputs weird date like this - <lastmod>1969-12-31</lastmod>. Google Webmaster Tools reacts as Invalid date

            [/b]
            The Chunk named as google_sitemap
            <url>      
            <loc>[(site_url)]/[~[+id+]~]</loc>      
            <lastmod>[+date+]</lastmod>
            <priority>[+tvpriority+]</priority>
            <changefreq>[+tvchangefreq+]</changefreq>
            </url>


            The TVs

            priority
            .1||.2|| .3|| .5|| .6|| .7|| .8|| .9
            

            changefreq - default value is yearly
            always||hourly||daily||weekly||monthly||yearly||never 


            The Page - Ditto
            <?xml version="1.0" encoding="UTF-8"?>
            <urlset xmlns="http://www.google.com/schemas/sitemap/0.9">
            [[Ditto? &dateFormat=`%Y-%m-%d`&startID=`0` &tpl=`google_sitemap` &displayArchive=`0` &dateSource=`editon`&summarize=`500` &total=`500` &descendentDepth=`3` &showInMenuOnly=`1`&filter=`type,document,1`]] </urlset>


            Am I missing something? Looking forward for some work around and enlightenment. Thanks in advance

            O.T: Hello to everyone for this is my very first post.
              An aspiring web designer & front-end web developer who is very much interested on the modern web.

              www.andrewabogado.com
            • Hi,

              please try ... &dateSource=`editedon`
                Bye,
                Mithrandir
              • andrew.abogado Reply #37, 10 years ago
                Quote from: Mithrandir at Aug 01, 2009, 06:36 AM

                Hi,

                please try ... &dateSource=`editedon`

                It’s now working. So that was causing the problem. I’m happy and very thankful for your help Mithrandir. I really appreciate it.
                  An aspiring web designer & front-end web developer who is very much interested on the modern web.

                  www.andrewabogado.com
                • This is genius. Thanks a lot for your hard work!
                  • Looks like the link to the tutorial is no longer working. Does someone have this information somewhere else? I suspect this would give more flexibility than the custom snippet.
                      Jason Bird
                      Twitter: @jasonabird @threeeyedbird
                    • Quote from: Bird at Nov 12, 2009, 03:54 AM

                      Looks like the link to the tutorial is no longer working. Does someone have this information somewhere else? I suspect this would give more flexibility than the custom snippet.

                      Yes, I can not find the Tutorial. Does some one has it ?
                      Or please write the step by step here .... smiley

                      Many Thanks.
                      Best Regards,
                      - pedma -