Latest News: (loading..)
Chemo

[CONTRIBUTION] Google XML Sitemap Feed - by Chemo

755 posts in this topic

Hi to everyone,

why in the urlset definition there is as xmlns ""http://www.sitemaps.org/schemas/sitemap/0.9"

Is it the same?

Many tools warn about this

Thank you in advance.

Share this post


Link to post
Share on other sites

Google is referenced in urlset because when this addon was originally written, that was the way to do it. The other search engines will accept the maps as long as the reference to the index is made in the robots file. The urlset change will be in the next release.

Share this post


Link to post
Share on other sites

hi  i want hide products and categories on hidden categories on sitemap

how to do it

Share this post


Link to post
Share on other sites

There isn't any code in place to do that so you would have to edit it. For example, in the sitemap,class.php file, find

		$sql = "SELECT products_id as pID, products_date_added as date_added, products_last_modified as last_mod, products_ordered 
			    FROM products 
				WHERE products_status='1'" . $quotes . "
				ORDER BY products_ordered DESC";

and change it to

		$sql = "SELECT products_id as pID, products_date_added as date_added, products_last_modified as last_mod, products_ordered 
			    FROM products 
				WHERE products_status='1'" . $quotes . "
                and products_id NOT IN (1,2,3)
				ORDER BY products_ordered DESC";

where the 1,2,3 are the product ID's (as many as you want). I haven't tested the above but I think it will do what you want. There is a similar function for categories where such a change can be made.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now