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
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
Comment | File | Size | Author |
---|---|---|---|
#2 | 2941322-2.patch | 4.59 KB | webflo |
Comments
Comment #2
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedComment #3
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedComment #5
gbyte CreditAttribution: gbyte commentedThis 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?
Comment #6
gbyte CreditAttribution: gbyte commentedPatch needs to be ported to 8.x-3.x.
Comment #7
gbyte CreditAttribution: gbyte at gbyte commentedComment #9
gbyte CreditAttribution: gbyte as a volunteer and at gbyte commentedI've heavily modified the patch and implemented views integration for all entity settings. Thanks for your input!
Comment #11
gbyte CreditAttribution: gbyte as a volunteer and at gbyte commentedI 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.
Comment #12
gbyte CreditAttribution: gbyte as a volunteer and at gbyte commentedI believe this can be easily implemented when #3034070: Store entity instance settings as fields on entity is completed.
Comment #13
gbyte CreditAttribution: gbyte as a volunteer and at gbyte commented