-
- 39 Posts
All my dates seem to comeout like this:
<lastmod>1970-01-01</lastmod>
Errr?
-
- 236 Posts
What version of MODx, and post your ditto call, and the TPL
-
- 236 Posts
I’m a bit confused, I use friendly urls, works fine.
-
- 22 Posts
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
-
- 90 Posts
Hi,
please try ... &dateSource=`editedon`
Bye,
Mithrandir
-
- 22 Posts
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
-
- 53 Posts
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.