Sections

Attachment lists

Attachment lists are found on Article and Request pages of your Zendesk theme.

By default our themes present attachments in an unstyled list, with both the filename and size visible.

  • {{#if attachments}}
      <ul class="list-unstyled my-6">
        {{#each attachments}}
          <li class="list-item">
            <svg class="svg-icon" xmlns="http://www.w3.org/2000/svg" focusable="false" viewBox="0 0 16 16">
              <path fill="none" stroke="currentColor" stroke-linecap="round" d="M9.5 4v7.7c0 .8-.7 1.5-1.5 1.5s-1.5-.7-1.5-1.5V3C6.5 1.6 7.6.5 9 .5s2.5 1.1 2.5 2.5v9c0 1.9-1.6 3.5-3.5 3.5S4.5 13.9 4.5 12V4"/>
            </svg>
            <a class="mr-2" href="{{url}}" target="_blank">{{name}}</a><span class="font-size-md text-gray-600">{{size}}</span>
          </li>
        {{/each}}
      </ul>
    {{/if}}

Attachments can also be presented as buttons.