Closed (fixed)
Project:
Google Sitemap
Version:
5.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Reporter:
Created:
7 Sep 2007 at 18:17 UTC
Updated:
22 Oct 2007 at 16:21 UTC
Jump to comment: Most recent file
A node type can be prevented from appearing in the sitemap by setting its priority to -1 at the XML Sitemap settings page (admin/settings/gsitemap). However, I am still given the opportunity to override the priority when creating a new node, which doesn't make sense. The expected behavior for the "Priority override" form field is to not show up when it has been disabled in the global settings.
The attached patch fixes this by checking the node type's global priority setting before altering the node's form.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | gsitemap_override.patch | 1.34 KB | smk-ka |
| gsitemap_form_alter.patch | 899 bytes | smk-ka |
Comments
Comment #1
smk-ka commentedRevised patch doesn't insert into/update the gsitemap table, which would be meaningless when the node type is globally ignored.
Comment #2
darren ohFixed in CVS commit 83572. Adding an entry to the gsitemap table is still necessary so that admins can change their minds about which node types to include in the site map.
Comment #3
darren ohComment #4
(not verified) commented