I would like to output the delta value of a multiple image field as a affix for the image title in a view, but increased with 1. So, it should start with 1 not with 0. How can I do this?
Why do I need this? I need to reference to the images from articles using the scheme Fig. 1, Fig. 2 etc. There for the view output should look like:
+----------------+
| |
| an image |
| delta 0 |
| |
+----------------+
Fig. 1: Image Title
+----------------+
| |
| an image |
| delta 1 |
| |
+----------------+
Fig. 2: Image Title
+----------------+
| |
| an image |
| delta 2 |
| |
+----------------+
Fig. 3: Image Title
The first thing I tried is, to sort the view by delta and than output "Global: View result counter", but this does not work if a filter is applied to the view. If a filter is in action, the numeration would not be concordant with the delta anymore.
Do I have to write an custom formatter? And when, where do I start, I don't have an idea.
php filter
module.