Problem/Motivation

Managing the Sitemap, controlling which entity types and bundles are included in the sitemap can be cumbersome.

Proposed resolution

Expand SimplesitemapEntitiesForm so that each non-atomic entity type has a table with options to control each bundle's inclusion in the sitemap.

Remaining tasks

Build out the configuration details.

User interface changes

Expanded SimplesitemapEntitiesForm.

API changes

n/a

Data model changes

n/a

Command icon 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

DamienMcKenna created an issue. See original summary.

gbyte’s picture

Version: 8.x-3.x-dev » 4.x-dev

Not sure about that, the way it works right now is one of the differentiators to xmlsitemap; I am happy to review patches though. In any case, any new features will be going into 4.x.

damienmckenna’s picture

Title: Provide all-in-one settings page for controlling sitemap integration for entity types » Provide bundle settings on SimplesitemapEntitiesForm
Issue summary: View changes

While digging around on the module I found that SimplesitemapEntitiesForm is a perfect place for this - just expand the logic to display a table on non-"atomic" entity types.

damienmckenna’s picture

Assigned: Unassigned » damienmckenna

I'm working on a prototype using the v8.x-3.x codebase.

damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new9.81 KB

WIP. The last bit is to make the "index" option show properly, right now only the title shows, the radio buttons don't.

damienmckenna’s picture

Status: Needs review » Needs work

Definitely needs work.

damienmckenna’s picture

StatusFileSize
new156.57 KB

A quick look at the WIP:

The "Enabled" option isn't working right, it doesn't show the radio buttons for some reason, and changing it to a checkbox doesn't make it load the existing saved value.
WIP

damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new76.68 KB
new4.17 KB
new9.48 KB

The form fields aren't being passed through to the submit handler, for some reason, so I turned it into more of a report:
WIP

damienmckenna’s picture

Removed the submission code entirely.

damienmckenna’s picture

Assigned: damienmckenna » Unassigned
gbyte’s picture

Status: Needs review » Needs work

Not a priority, but anyone feel free to grab this and contribute.

walkingdexter’s picture

Assigned: Unassigned » walkingdexter
gbyte’s picture

A thought: If we implement this, please make it as flexible as FormHelper::displayEntitySettings (but much cleaner code wise ;)) so we can reuse it e.g inside a Sitemap (variant) create/edit form (admin/config/search/simplesitemap/variants/add).

walkingdexter’s picture

Assigned: walkingdexter » gbyte
Status: Needs work » Needs review

Improved entity settings management. @gbyte please review.

gbyte’s picture

Assigned: gbyte » walkingdexter
Status: Needs review » Needs work

I like it a lot. The only issue I found is a serialization bug when clicking 'save' on admin/config/search/simplesitemap/entities/{entity_type} when Regenerate all sitemaps after hitting Save is checked. Feel free to merge into 4.x after fixing it.

  • WalkingDexter committed b19e47e on 4.x
    Issue #3219888 by DamienMcKenna, WalkingDexter: Provide bundle settings...
walkingdexter’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

damienmckenna’s picture

Am very grateful that you both worked to finish this off and get it working as intended. Thank you both!