You are here

README.txt in Image URL Formatter 8

Same filename and directory in other branches
  1. 7 README.txt
This module adds an FieldFormatter for an Image field,
which let's you grab the URL of an image directly

While most of the code comes from the core module image's
ImageFormatter.php, some rewriting with templating has
been done. Should be stable.

Usage:
(1)
After installation of this module you'll get a new
format type "Image URL" you can assign to any Image Field
in a Content Type. Just go to the Type's "Manage Display"
and choose "Image URL" instead of "Image" from the Format
Combo-Box.

(2)
Same goes for Image Content Fields in Views, choose
"Image URL" as format and an URL Type out of
'Full' (default), 'Absolute' or 'Relative'.

Now the image's URL in the chosen form will be returned
instead of the full <img> tag.

--

As there seems to be an issue with "Global: Custom Text"
at the moment (21/08/15), just use the Template TWIG
for formatting your output or overwrite the Template
in your Profile.

File

README.txt
View source
  1. This module adds an FieldFormatter for an Image field,
  2. which let's you grab the URL of an image directly
  3. While most of the code comes from the core module image's
  4. ImageFormatter.php, some rewriting with templating has
  5. been done. Should be stable.
  6. Usage:
  7. (1)
  8. After installation of this module you'll get a new
  9. format type "Image URL" you can assign to any Image Field
  10. in a Content Type. Just go to the Type's "Manage Display"
  11. and choose "Image URL" instead of "Image" from the Format
  12. Combo-Box.
  13. (2)
  14. Same goes for Image Content Fields in Views, choose
  15. "Image URL" as format and an URL Type out of
  16. 'Full' (default), 'Absolute' or 'Relative'.
  17. Now the image's URL in the chosen form will be returned
  18. instead of the full tag.
  19. --
  20. As there seems to be an issue with "Global: Custom Text"
  21. at the moment (21/08/15), just use the Template TWIG
  22. for formatting your output or overwrite the Template
  23. in your Profile.