Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
It would be great to allow admins to specify per entity inclusion in the site map instead of using the global 'administer xmlsitemap' permission, which grants a bunch of extra stuff we don't want admins tampering with.
Proposed resolution
Add a new permission.
Remaining tasks
Patch.
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#9 | 2776447-9.patch | 2.34 KB | acbramley |
Issue fork xmlsitemap-2776447
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
Sam152 CreditAttribution: Sam152 at PreviousNext commentedNew permission.
Comment #5
SpadXIII CreditAttribution: SpadXIII at ezCompany commentedWe have just updated the patch to apply to the latest dev.
Comment #6
pifagorYou need to add a patch test.
Comment #7
acbramley CreditAttribution: acbramley at PreviousNext for Service NSW commentedRerolled against latest dev. I've kept the original permission there as well to avoid an upgrade path and it makes sense that those users should also have access. I've also added a test case.
Comment #8
kim.pepperComment #9
acbramley CreditAttribution: acbramley at PreviousNext for Service NSW commentedStraight reroll.
Comment #10
rbrownellJust tested this patch and it delivers the promised result. The code behind the patch is uncomplicated and looks good. I think this should be merged into a release.
Comment #11
chegor CreditAttribution: chegor as a volunteer commented+1 RTBC
Comment #13
Dave ReidPatch did not apply and I don't love the name using "administer" in the label. I'd rather prefer "override xmlsitemap link settings". The included test also doesn't actually verify that the new permission allows users to see the fields on node forms like we are trying to fix.
Comment #15
Dave ReidComment #17
Dave ReidCommitted the MR to 8.x-1.x. Thanks all!