Support » Plugin: Media Library Assistant » Simple List

  • Resolved Morf613


    Greetings. Great plugin!
    I want to use the [mla_gallery] shortcode to output a simple list of LIs. I want the end result to be:

    <ul class="classname_i_specify">
      <li class="otherclass_i_specify"><img src="whatever" alt="x" /></li>
      <li class="otherclass_i_specify"><img src="whatever" alt="x" /></li>

    The shortcode I use is this:
    [mla_gallery attachment_category="landingimg" mla_style="none" size=full itemtag="ul" icontag="li" link="none" ]

    I get a ton of extra markup. I get a <div> wrapper around my gallery, and now each item has it’s own UL tag, instead of all images wrapped under 1 UL tag. Also, I get a tag for the caption. I’d like to turn off that entirely. I’m unsure how to specify the css class names I want the tags to have, as well.

    Any way for just a simple list?


Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Lingren


    Thanks for the good words and for this question. The best way to get the results you want is to create a custom markup template. You can do this in the Settings/Media Library Assistant MLA Gallery tab. You can also get more information about custom templates in the Documentation tab’s “MLA Gallery Style and Markup Templates” section.

    In particular, have a look at the default “tag-cloud-ul” template. It’s very close to what you want, but it uses slightly different substitution parameters for the tag names. Copy the Open, Item and Close sections from this template to a custom template (scroll down to the blank template at the bottom of the page) and change [+termtag+] to [+icontag+] in the Item section. Save your work (“Save Changes” at the bottom of the page), then add mla_markup=your_template_name to your shortcode.

    You can change the class attributes to fit your theme and make other changes to get the results you want. If you need more specific help with that, let me know.

    Here is another support topic along similar lines:

    pdf list

    You might find more ideas there.

    I hope that gets you started on a custom template that gives you a simple list. I’m going to mark this topic resolved, but please update it if you have any problems or further questions. Thanks again for your interest in the plugin.

    Thank you for your quick response and for the fact that you [very] actively help everyone out. Your advice worked like a charm.
    Thanks again!

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