Sitemap Module
ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5, ExpressionEngine 6
Back to this add-on's main page
View Other Add-ons From Brian Litzinger
Errors when generating sitemap
General
Eric Smith
|
Posted: 27 January 2011 12:37 AM |
|
|
|
Hi-
I think I followed all of the install correctly. I created a new template group called sitemap and then created a template called sitemap within that. Is that correct?
When viewing the sitemap, I am getting a few errors, many of which seem to be HTML validation issues. For example it throws the error when using the
©
XML Parsing Error: undefined entity Location: http://esmithproductions.com/sitemap.php Line Number 102, Column 15:
Should this be throwing the errors like this or did I not install it correctly?
Thanks,
Eric
|
|
|
PutYourLightsOn
|
Posted: 27 January 2011 07:15 AM |
# 1
|
|
|
hi eric,
the default template structure is site/sitemap. you can either change it to that (change the template group to site) or adjust the sitemap.php file accordingly. let me know if you have any further problems.
ben
|
|
|
Eric Smith
|
Posted: 27 January 2011 11:12 AM |
# 2
|
|
|
Hi Ben-
I moved the new template so that it’s in my home>sitemap (where my home page index page is) I added the code {exp:sitemap:get} to this page. I’m still getting the errors when generating the site map from www.esmithproductions.com/sitemap.php. Is this something with my code?
Thanks,
Eric
|
|
|
PutYourLightsOn
|
Posted: 27 January 2011 11:16 AM |
# 3
|
|
|
as i said, you need to adjust the sitemap.php file. change line 14 to:
$template = ‘home/sitemap’;
|
|
|
Eric Smith
|
Posted: 27 January 2011 11:51 AM |
# 4
|
|
|
Ah, got it, sorry for the confusion.
Do I have to add additional pages that aren’t included in a Channel? Under insert new location?
I have some static template pages that aren’t showing up in the site map. I wasn’t sure how much I needed to add/change.
Thanks!!
|
|
|
PutYourLightsOn
|
Posted: 27 January 2011 12:54 PM |
# 5
|
|
|
you can add as many static template pages as you wish under insert new location
|
|
|