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
In views RSS plugins and elsewhere we use the config name 'item_length' to denote the view mode that the item is rendered in in the RSS feed. It once was 'item length' in 4.7, ie the trim length. It no longer is item length, its a view mode.
Proposed resolution
Rename it to aid discoverability/understanding
Remaining tasks
Patch
Reviews
User interface changes
None
API changes
Config schema changes, form field name changes
Comment | File | Size | Author |
---|---|---|---|
#4 | 2290103-4.patch | 9.91 KB | damiankloip |
#1 | item_length_rename.1.patch | 10.43 KB | larowlan |
Comments
Comment #1
larowlan<3 grep + sed (the gnu flavours, not the OSX pov ones)
Comment #2
jibrantagging.
Comment #3
damiankloip CreditAttribution: damiankloip commentedLooks fine to me.
I'm not sure making the name change in this file too is correct?
Moving to 'other' as this is not just a views thing. VDC tag should be ok here?
Comment #4
damiankloip CreditAttribution: damiankloip commentedRerolled for view_mode change in #2289095: "Frontpage" view, feed display renders the node comment form:
Also removed changes from drupal-7.system.database.php
Comment #5
dawehnerJust in case someone wondered, historic reasons: rss did not supported view modes at some point so using item_length allowed us to be able to not break existing views while supporting both features at the same time.
Comment #6
alexpottCommitted 7332211 and pushed to 8.x. Thanks!