Forum
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="https://www.sitemaps.org/schemas/sitemap/0.9">
</perch:before>
<url>
<loc><perch:setting id="siteURL" /><perch:pages id="pagePath" /></loc>
</url>
<perch:after>
</urlset>
</perch:after>
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.
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.