Problem/Motivation

I would like to see the sitemap status and priority in views.

Proposed resolution

The sitemap state per entity is stored in serialized format. Its not possible to query it in views. I used a computed field to integrate in views.

Remaining tasks

User interface changes

API changes

Data model changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

webflo created an issue. See original summary.

webflo’s picture

Status: Active » Needs review
FileSize
4.59 KB
webflo’s picture

Title: Expose sitemap index and priority » Expose sitemap index and priority in views

Status: Needs review » Needs work

The last submitted patch, 2: 2941322-2.patch, failed testing. View results

gbyte’s picture

This is really interesting, might be useful to display sitemap settings through a view.
Patch did not apply for me either, could you check it out?

Also, what is your use case for this feature?

gbyte’s picture

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

Patch needs to be ported to 8.x-3.x.

gbyte’s picture

  • gbyte.co committed afc20a1 on 8.x-3.x
    Issue #2941322 by webflo, gbyte.co: Expose sitemap entity settings in...
gbyte’s picture

Title: Expose sitemap index and priority in views » Expose entity sitemap settings in views
Status: Needs work » Fixed

I've heavily modified the patch and implemented views integration for all entity settings. Thanks for your input!

Status: Fixed » Closed (fixed)

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

gbyte’s picture

Status: Closed (fixed) » Needs work

I have been thinking about it some more and I do not like this partial solution. With computed fields, it is impossible to use the calculated values as view filters/sorting, as (obviously) the query is not being affected. A better solution would be to redesign the storage of entity overrides. I will remove this feature before the full release and we can keep this open for a more solid implementation.

gbyte’s picture

Status: Needs work » Postponed

I believe this can be easily implemented when #3034070: Store entity instance settings as fields on entity is completed.

gbyte’s picture

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