Use attachments as list options

Use attachments as list options

Let's create a set of options from a dropdown menu that obtains its options from attachments on the page.

On this page:

On this page:

Ingredients

Apps

Scaffolding

Macros

Attachment Options, List Data

Guide

  1. Create a table as in the following image:

  1. Using the List Data and Attachment Options macros, fill in the table as in the following image:

  1. Attach some images to the page that can be used as options in the dropdown menu.

  2. Save the page.

You created a table with dropdown menus with options that are populated with the page attachments.

Notes

  • The attachments can be from another page as well as from the current page.

  • Include and exclude parameters can be populated with either:

    • a regex

    • an exact filename

Use unique macro names to avoid conflicts.

Result