Skip to main content

r:image_tag

<r:image_tag />

Outputs an image tag. Must be used inside of a r:files loop.

Attribute Options

alt_text - Outputs the alt text of an image as listed in a file's properties.

size - Specify the size of an image. Format is widthxheight, for example 250x250.

Example:

<r:files labels="tag1,tag2" types="image" labels_match="any" by="title" order="asc">
  <ul class="thumbnails">
    <r:each>
      <li>
        <a href="<r:file:image_url />">
          <r:file:image_tag size="250x250" alt="{file:alt_text}" />
        </a>
      </li>
    </r:each>
  </ul>
</r:files>

image

This tag is documented at r:file.

Last updated on March 16, 2021.

We welcome all questions, feedback and bug reports. If you're having an issue, we usually need the following information:

  • A brief description of the issue
  • A link to the page where you saw the issue
  • Screenshots that illustrate the problem - How do I take a screenshot?

Kindly email CleanSlate@mail.wvu.edu for help or use the form on the request help page.