Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Adam Bissonnette

    (@mmanifesto)

    You should be able to do this with the custom formats functionality:

    <select>[MMFileList folder=”/cats/” format=”custom”]<option value=”{url}”>{name} (size)</option>[/MMFileList]</select>

    That might not be the exact markup you need but it should be something like that

    Thread Starter papyrusdoc

    (@papyrusdoc)

    Thanks for the reply. With a little extra code from some other searches I was able to get exactly what I needed.

    For anyone else with this need: here’s the code I put into a WP page (text panel) which reads the files in a directory and opens them upon selection from the list. To get multiple directories in one drop down, you can repeat the code between the [MMFileList] brackets with different directories.

    <select id=”urlSelect” onchange=”window.location = jQuery(‘#urlSelect option:selected’).val();”>
    <option value=”” disabled selected>Select your option</option>[MMFileList folder=”../../relative/directory/” format=”custom” types=”pdf,docx”]<option value=”{url}”>{name}</option>[/MMFileList]
    </select>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Feature Request’ is closed to new replies.