3

I created a view in drupal and needs some serial numbering as the first column which is not there in the content type on which I created the view. My question is how to add that serial number field in this view like this

cand_name | phone_num | email id

is my view

I want it like this..

sno | cand_name | phone_num | email id

hope I am clear, write comments if it needs still clear explanation.

Thanks in advance

6

You should use Global: view result counter field defined in a view.

OR if you want a serial field for the content type you can use

the module serial field

  • Ah!!! You are little bit fast rather than me. – Jayendra Kainthola Nov 11 '13 at 11:49
  • I am unable to add a serial field directly to a view when its part of field collection, though? – pal4life May 8 '15 at 14:45
  • you can use views relationship to get the fields inside the field collection – harshal May 8 '15 at 18:20
5

Yon can follow below step to add serial number column.

  • Administration -> Structure -> Views

  • Edit your view.

  • Add new fields in your view.

  • Add "Global: View result counter" field from global section to your view.

"Global: View result counter" field display the count number of rows in your view result.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.