Budget101
12-10-2016, 06:06 PM
Currently the sitemap pulls "updated dates" for the CMS from the cms_node field.
I'd like to remove the current line from the sitemap:
$content .= "\n\t" . '<lastmod>' . gmdate(DATE_W3C, $sitemap['lastmod']) . '</lastmod>';
and replace it with code that forces the <lastmod> date to be the CURRENT Date (as of the moment of sitemap generation)
Would this one work?
$content .= "\n\t" . '<lastmod>' .Y-m-d\TH:i:s+00:00. '</lastmod>';
Could someone help me out with the correct syntax please??
I'd like to remove the current line from the sitemap:
$content .= "\n\t" . '<lastmod>' . gmdate(DATE_W3C, $sitemap['lastmod']) . '</lastmod>';
and replace it with code that forces the <lastmod> date to be the CURRENT Date (as of the moment of sitemap generation)
Would this one work?
$content .= "\n\t" . '<lastmod>' .Y-m-d\TH:i:s+00:00. '</lastmod>';
Could someone help me out with the correct syntax please??