Sitemap.xml

Permalink
How to remove <lastmod> info from Sitemap.xml? Thank you for the help.

 
amrod replied on at Permalink Reply
amrod
I didnt test it but you should edit the file:
concrete\jobs\generate_sitemap.php

on line 39
//$home .= "  <lastmod> " . date('Y-m-d') . "</lastmod>\n";


on line 98
//$node .= "  <lastmod>". substr($c->getCollectionDateLastModified(), 0, 10)."</lastmod>\n";
mnakalay replied on at Permalink Reply
mnakalay
Hello,
Maybe the jobs forum is not the place to post this. I think you should post requests for help in the general forums. People coming here are professionals expecting to find paying job offers.

Having said so, amrod suggestion is properly correct but if you edit the job as he suggests, you will revert back to having the <lastmod> next time you update Concrete5.

You should override it instead by putting the file in the root "jobs" folder before editing it.