Elxis CMS Forum

Support => General => Topic started by: xmanhattan on August 04, 2009, 11:45:25

Title: a sitemap question
Post by: xmanhattan on August 04, 2009, 11:45:25
Hello all,

I entered a new post in my eblog that I did not set to be published.
By chance clicked on my sitemap and noticed that it also displayes the eblogs that are not published.

Is this an error?

Thanks
Title: Re: a sitemap question
Post by: datahell on August 04, 2009, 11:57:49
Oooooops!  :o

Open administrator/components/com_sitemap/extensions/eblog.sitemap.php
Go to line 141.
Change this:
."\n WHERE s.published='1'"
With this:
."\n WHERE s.published='1' AND b.published='1'"

This happened as the option to set a blog post publish status added on the second release of Elxis 2008.1. At first there was no such option.
It is not a security risk to leave it as is as it is just a link to sitemap. If someone clicks it eblog will tell him that the requested post does not exist.
Title: Re: a sitemap question
Post by: xmanhattan on August 04, 2009, 13:59:56
Good to know and many thanks.

I will tell you now just in case I forget, Have a great vacation and enjoy yourself.