• Resolved plinth

    (@plinth)


    Hi, thanks for the plugin, seems to be running well so far, but with one odd glitch/feature:

    I’ve added the following shortcode into a post:

    [MMFileList folder="../../2011/01/results_jan_14_2011/" format="li" types="html" target="new" /]

    And I’m trying to display a list of html files that have been uploaded to that directory. The list is built in the post fine, but every list item looks like this:

    <li><a href="https://localhost/wp-content/uploads/2015/02/../../2011/01/results_jan_14_2011/FTD_Round1_Mini Mod.html"{target}><img src="https://localhost/wp-content/uploads/2015/02/../../2011/01/results_jan_14_2011/FTD_Round1_Mini Mod.html" class="image" title="FTD_Round1_Mini Mod.html (1.70K)" /></a></li>

    There’s a few problems here obviously. Firstly, where is it getting the <img> tag from? There are no images in that directory, and I’ve stipulated html file types. Secondly, how do I get the {target} parameter to display correctly so that links open in a new window? I’ve tried target="_blank" but that didn’t work either.

    Thanks

    https://www.ads-software.com/plugins/mmm-file-list/

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

    (@mmanifesto)

    Oops! It looks like I was missing a “break;” tag in the format switch and it was causing the default “li” list to spit out image tags. Additionally that {target} called was getting missed for images.

    If you update to version 1.1 the functionality should be working as expected without the extra image tags.

    Plugin Author Adam Bissonnette

    (@mmanifesto)

    Just marking this as resolved. Let me know if you’re still having the issue.

    Thread Starter plinth

    (@plinth)

    Yep – all good. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘External html files wrapped in img tag’ is closed to new replies.