The standard Content list in Drupal 7 (displayed with the Find content menu item) gives me a table of nodes in the system with various attributes, such as the type. I want to add the text type (e.g. Filtered HTML).

How can I do this? Installing the Administration views module has made the table much more configurable, but there seems to be no way to include data from the field_data_body database table, which contains the information. The Table Wizard and Data modules apparently provide this functionality, but are not done for Drupal 7.

Is there a way to do this without coding?

If I have to code it, do you recommend creating a new module (with which I have no experience) or patching up an existing one until it works well enough, and if so, which one?

PS: this can be regarded as a special case of a (frequently asked) related question.


It is possible to do this with Views 3 in Drupal 7:

  1. Add the field you need the format of to the view (E.g. field_body)
  2. In the configuration form for that field tick the 'Rewrite the output of this field' box
  3. Put the '[field_name-format]' token into the box

It will render the raw name of the input format, instead of the value.

| improve this answer | |
  • I can add the field in question to the filter criteria for the view (it's called: Content: Body (body:format)) but I cannot add the same field to the list of fields to be displayed. Why not? – reinierpost Oct 25 '12 at 15:11
  • How do I determine the field_name? – reinierpost Oct 26 '12 at 10:24
  • It works! Turns out I had to add the name [body-format]. Still don't know how I could have determined this other than by reading the code or guessing. – reinierpost Oct 26 '12 at 10:26
  • how exactly do you add [body-format] could you please say it clearly regards. ASDA – user23349 Nov 1 '13 at 10:49
  • I'm sorry, I forgot and apparently I also forgot to document it. – reinierpost May 23 '14 at 9:33

This is the third step when you want to achieve this in Drupal 8: 3. Put the '{{ body__format }}' token into the box.

This is because the token format changed between Drupal 7 & 8.

| improve this answer | |

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.