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?

CommentFileSizeAuthor
views_field_delta_field.patch1.14 KBderhasi
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

merlinofchaos’s picture

I don't believe a 'real field' would be needed. Will have to take a look at this more closely when I have more time.

dawehner’s picture

Well in theory it would be possible if there would exist a formatter which prints out just the delta.

merlinofchaos’s picture

That'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.

derhasi’s picture

Hm, now I'm confused :D

I just thought of displaying the delta via 'views_handler_field_numeric'. I guess we could even remove the

+          'additional fields' => $additional_fields,

from the patch.

dawehner’s picture

Status: Needs review » Needs work

So update status to get a perfect version in.

dawehner’s picture

Status: Needs work » Fixed

Just committed a much simpler version... Thanks for the patch and the idea!


+        $data[$table]['delta']['field'] = array(
+          'handler' => 'views_handler_field_numeric',
+        );

That's all you need.

Status: Fixed » Closed (fixed)

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