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.
As there are delta filters, argument and sort provided for the delta column, I guess adding the 'field' would not be a big deal. Was there any reason, why it did not go into code?
I definitely need the column for a view, so I created the patch below.
The only thing i'm not sure off, is if there is a 'real field' needed. merlin, dereine, do you know an answer to that?
Comment | File | Size | Author |
---|---|---|---|
views_field_delta_field.patch | 1.14 KB | derhasi | |
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedI don't believe a 'real field' would be needed. Will have to take a look at this more closely when I have more time.
Comment #2
dawehnerWell in theory it would be possible if there would exist a formatter which prints out just the delta.
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedThat's interesting, but such a formatter would also be very confusing, since it would appear basically everywhere and impact how formatters are chosen all over the site.
Comment #4
derhasi CreditAttribution: derhasi commentedHm, now I'm confused :D
I just thought of displaying the delta via 'views_handler_field_numeric'. I guess we could even remove the
from the patch.
Comment #5
dawehnerSo update status to get a perfect version in.
Comment #6
dawehnerJust committed a much simpler version... Thanks for the patch and the idea!
That's all you need.