Helper: filemanager/photo

« All helpers

Creates a space where a photo can be updated by a site admin and will be automatically resized to fit the dimensions set out in advance.

Usage:

{! filemanager/photo?key=about-photo&width=150&height=200 !}

Options:

  • key - A unique ID for the photo spot (alphanumeric, no spaces).
  • width - The width of the photo spot (default = 300).
  • height - The height of the photo spot (default = 200).
  • alt - Text for the alt attribute.
  • class - Class name(s) for the class attribute.
  • default - The path to a default photo, otherwise a placehold.it image is used.