• Resolved alx359

    (@alx359)


    [mla_tag_cloud] has an odd way IMO of taking custom templates. For example:

    this doesn’t work:

    [mla_tag_cloud taxonomy=product_tag mla_markup=tag-cloud-flatsome]

    this doesn’t work either:

    [mla_tag_cloud taxonomy=product_tag mla_output=flat mla_markup=tag-cloud-flatsome]

    but this does work:

    [mla_tag_cloud taxonomy=product_tag mla_output=list mla_markup=tag-cloud-flatsome]

    Why so?

    tag-cloud-flatsome is quite simple actually:

    Open: <div class="tagcloud">
    Item: <a href="[+termlink_url+]" class="tag-cloud-link tag-link-[+term_id+] tag-link-position-[+last_in_row+]">[+name+]</a>
    Close: </div>

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

    (@dglingren)

    Thanks for your question and for the examples you provided.

    The default output for the [mla_tag_cloud] shortcode is “flat”, which

    Returns a sequence of hyperlink tags without further HTML markup.

    Since there is no HTML markup, there is no use for a template. Adding the mla_output=list, as you discovered, activates the template logic.

    I am marking this topic resolved since MLA is working as intended, but please update it if you have any further questions about the explanation.

    Thread Starter alx359

    (@alx359)

    Thanks for the answer. I understand the reasoning, but to keep it tidy, IMHO mla_markup should take precedence and override whatever mla_output may have set in, as it seems the behavior with the other shortcodes.

    Plugin Author David Lingren

    (@dglingren)

    Your comments prompted some additional testing. I discovered that if you add an mla_output=list parameter to the Arguments section of your tag-cloud-flatsome template you can omit it from your shortcode, so your first example would work just fine. The value(s) in the Arguments section provide, in effect, new default values that you can override in your shortcode if need be.

    Give that a try and let me know if you encounter any problems.

    Thread Starter alx359

    (@alx359)

    Bumped into that feature already, thanks. It’s nice indeed that templates would help simplify syntax further of things unspecific to the current instance.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[mla_tag_cloud] unexpected dependency’ is closed to new replies.