Thread tagged as: Question, Error

XML Sitemap URL Var

Hi All

Ive just created a new sitemap and added the perch setting in the HTML template for the site url but the page errors.

is there a way to make the url dynamic for a sitemap

this way i dont need to change it for development and live

<perch:before><?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="">
<loc><perch:setting id="siteURL" /><perch:pages id="pagePath" /></loc>

the error i get is

This page contains the following errors:

error on line 5 at column 34: Namespace prefix perch on setting is not defined Below is a rendering of the page up to the first error.

Anthony Elleray

Anthony Elleray 2 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

That sounds very much like your template isn't being parsed. Nothing delivered to the browser should have perch:setting in it if you're doing things correctly.