Module

Developer
Supported

Sitemap Module

ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5

Back to this add-on's main page
View Other Add-ons From PutYourLightsOn

     

You must be logged in to post.

Sitemap XML Error

Support (Resolved)

niallthompson
niallthompson

Hi there,

I’m not entirely sure if i’ve set it up correctly but in any case I am getting an error:

This page contains the following errors:

error on line 181 at column 49: Extra content at the end of the document
Below is a rendering of the page up to the first error.

I’ve setup the template as instructed (sitemap.xml) and added the shortcode: {exp:sitemap:get}

Any thoughts?

niallthompson
# 1
niallthompson

Ha, this morning it seems to be magically working.

What I am still unsure about is how to correctly setup the channel to include multiple templates.

For example:

I have a channel called projects which has 2 templates, an index and a view template.

How would I correctly set this up?

PutYourLightsOn
# 2
Developer
PutYourLightsOn

what is the url of your channel entries? i would assume you would want something like this:

under locations:
http://www.domain.com/index

under channels:
http://www.domain.com/view/{url_title}

niallthompson
# 3
niallthompson

I have a channel called Projects which has two templates:

dandelion-burdock.com/projects

&

dandelion-burdock.com/projects/view/{url_title}

Does that make sense?

Can I manually add urls to the sitemap?

PutYourLightsOn
# 4
Developer
PutYourLightsOn

yes, so you can do this:

under locations:
dandelion-burdock.com/projects

under channels:
dandelion-burdock.com/projects/view/{url_title}