We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum


Thread tagged as: Question

XML Sitemap


What would you suggest is the best way to add the following to the sitemap?

I can think of a couple ways, just wanted to see what you think the best way is

  • Apps such as Blog & Events
  • List & Detail Pages

I've read the solution you have which says use


But obviously that does not include any of the above

Dexter Harrison

Dexter Harrison 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

On our site, we do this:

    header('Content-type: application/xml');
    echo '<?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';
        'template' => 'sitemap.html',
        'flat' => true,
        'hide-extensions' => true

        'template' => 'google_sitemap.html',
        'paging'   => false,
        'count'    => 3000,

    echo '</urlset>';

Perfect, thank you