Drupal 7 Get image field path

后端 未结 5 1596
悲哀的现实
悲哀的现实 2021-01-30 18:06

I would like to get the image path of a field. I\'m in a node and I need the Url of image in order to put it as a background-image in inline css. I can\'t find the solution. Can

5条回答
  •  无人共我
    2021-01-30 18:49

    You also can use the Image URL Formatter module. It allows to change the field format in order to get only the URL:

    Drupal field settings

    Bonus: it works with Views as well:

    enter image description here

提交回复
热议问题