WordPress.org

Ready to get started?Download WordPress

Forums

Media Library Assistant
[resolved] How do I use an image as a link to a page? (6 posts)

  1. NaomiA
    Member
    Posted 1 year ago #

    Hi there
    If I haven't already said it, I LOVE your plugin. Being able to view images in categories is SO much better. So thank you for that.
    One small issue. And I have tried everything I can see to work this out, but to no avail.
    I want to use the gallery function to create a visual index page.
    So, for example: http://www.disabilitydirectory.net.au/topics/

    This page should have:
    - the images in alphabetic order
    - click through links set by the field Gallery Link URL (created by plugin of same name) which is a custom field to specify this detail

    I can not seem to achieve either, no matter what I do.

    Also, is it possible to place the gallery in a widget?

    http://wordpress.org/extend/plugins/media-library-assistant/

  2. David Lingren
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you for the kind words here and in your April 10 comment in the "Thank you and question about possible future feature" topic regarding the category search in the Add Media box. I'm glad you're finding the plugin so useful. The categories and tags capability was one of my original motivations for this project.

    I had a look at your example page - great site, by the way. It looks like you're already using [mla_gallery] to compose the gallery. It would help if I could see the actual shortcode you've put together to get this gallery. I understand you have two issues: 1) how to sort the gallery entries and 2) how to change the link associated with each gallery item.

    Sorting the gallery should be straightforward; just add an orderby= parameter to the shortcode. You can find a list of the fields you can sort on (title, caption, etc.) in the Order, Orderby section on the Documentation tab of the Settings/Media Library Assistant screen. Try, for example, orderby=title. If you've already added this parameter to your gallery and it's not working, let me know.

    Changing the link associated with the gallery items is also possible, and there are several possibilities. Have a look at the Gallery Display Content section and the mla_link_href parameter. You can put a custom field in this parameter; documented in the Field-level Markup Substitution Parameters.

    For example, you have a custom field called "Gallery Link URL" associated with each of the images. This field contains the full URL you want to link to, e.g., "http://www.disabilitydirectory.net.au/topics/gethelp/". Try adding this parameter to your [mla_gallery] shortcode:

    mla_link_href="{+custom:Gallery Link URL+}"

    If that's not clear or if you have trouble with it, let me know.

    Finally, I'll admit I haven't done much with widgets and have not tried an [mla_gallery] inside a widget. I will do some research and experiments and post an update here when I know more.

    I hope this gets you started on solving the sorting and linking issues you raised. Let me know if there's anything more I can do to help.

  3. David Lingren
    Member
    Plugin Author

    Posted 8 months ago #

    I hope the tips I gave on sorting and linking your images to pages were helpful.

    I am starting to look into Widgets, and wanted to follow up on your comment/question:

    Also, is it possible to place the gallery in a widget?

    If you can tell me more about what you have in mind it will help inform my research and development in this area. Thank you for any help you can provide.

  4. David Lingren
    Member
    Plugin Author

    Posted 7 months ago #

    I have been doing some research and testing for another support topic and found this plugin:

    Shortcode Widget, version 0.3 by Gagan Deep Singh

    I used this plugin to add an [mla_gallery] shortcode in a widget and it works fine. Perhaps it will help you as well; let me know how it goes.

    I am working on some native MLA widget support for a future release, and I'm going to leave this topic unresolved for now.

  5. David Lingren
    Member
    Plugin Author

    Posted 7 months ago #

    I have released v1.60, which contains the new MLA Text Widget. You can use this widget to contain an [mla_gallery] or the new [mla_tag_cloud] or any other shortcode.

    When you get a chance to upgrade and test this out, let me know if you have any problems or further questions. I'm going to mark this issue resolved; thanks for your patience.

  6. NaomiA
    Member
    Posted 7 months ago #

    Will do thanks. And no issue with closing out the issue. Happy at this end. Cheers

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.