In Drupal 6 Views, there was an option to display the path of that file for an image type field, which is not present in Drupal 7.
Where is it?

  • 1
    Which views version are you using? Are you using the views-7.x-3.x-dev with the new UI?
    – Dipen
    Mar 20, 2011 at 2:13
  • 7.x-3.0-alpha1, I also made a fresh install and tried it with -dev. Nothing.
    – Sergiu B
    Mar 20, 2011 at 19:31
  • I ended up using image_style_url() api.drupal.org/api/drupal/modules--image--image.module/function/… in row views theming
    – Sergiu B
    Mar 20, 2011 at 22:36
  • You should add that as answer and accept it (when you can), or accept an existing answer.
    – apaderno
    May 24, 2011 at 16:40

1 Answer 1


In Drupal7 the output is handled by the formatter. If you have a formatter which allows to output the filepath it will be used.

In core there is none so the Custom Formatters module will help you. Some more details about this module (from its project page):

The Custom Formatters module allows users to easily create custom Field Formatters without the need to write a custom module. Custom Formatters can then be exported as CTools Exportables, Features or Drupal API Field Formatters.

  • Can you give me an example on how to make a custom formatter and display the file path of an image? I also want to use an imagecache style path
    – Sergiu B
    Mar 20, 2011 at 20:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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