​PageObject: Downloads

​Downloads are rendered as options <li> within an unsorted list <ul>. Each option consists of a title and a link to a file within an <a> tag.

If there is just one file in the download section, the <ul> will be replaced with a <div> tag, and the <li> tags are removed.

HTML example with multiple files (system generated)

<ul class="fx_po_download">
    <li><a href="/link/to/file1.pdf" download="title1">Title 1</a></li>
    <li><a href="/link/to/file2.pdf" download="title2">Title 2</a></li>

​HTML example with one file (system generated)

<div class="fx_po_download">
    <li><a href="/link/to/file.pdf" download="title">Title</a></li>
​This PageObject renders as block element.

​Demo content

Available parameters:

Configuration example

{{ fx_page.slot("SLOT_NAME", _context, {"content": [
   {"type": "download", "config": {"downloads": ["Download 1", "Download 2", "Download 3"]}}
] }) }}
​For more details how to implement demo content please refer to the Demo Content Documentation.