Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #7 from Marketo/missing-fields
Browse files Browse the repository at this point in the history
Adding Missing Fields
  • Loading branch information
Brandon32 authored Apr 6, 2018
2 parents 549449e + e3d71bc commit bdb4246
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/controllers/SiteMapXMLController.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ public function generateSiteMap($sitemap = 'sitemap.xml', $siteURL = null)
/** @var SiteDataService $siteData */
$siteData = singleton('SiteDataService');
$siteData->additionalFields[] = 'ShowInSearch';
$siteData->additionalFields[] = 'ChangeFreq';
$siteData->additionalFields[] = 'Priority';
$pages = $siteData->getItems();

$xml = new SimpleXMLElement('<urlset></urlset>');
Expand Down

0 comments on commit bdb4246

Please sign in to comment.