• Resolved fideel

    (@fideel)


    Hello,

    I’ml new to MLA.
    I managed to create different categories (att. categories), for example att categorie named: “wantedimages”
    I can display the wanted images on a page with the shortcode: “[mla_gallery attachment_category=wantedimagessize=medium]
    SO now i see my page with the images i wanted, so far so good.
    But now i want to make the image link to another page with info about the images, each image another page.
    But MLA makes an url of each image, when i click the image, there will open a page with the image… i actually want to make a page for it myself.

    IN MLA, Media, the perma link is correct. But when clicking the image on my page, it sends me to the file url /upload/xxx/xxx….jpg

    How can I do that?

    Thx for helping me out!

    • This topic was modified 6 years, 11 months ago by fideel.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your question. The default target for the images in an [mla_gallery] display is the “Media Page” for the item. This is a WordPress convention and the page is generated by your site’s theme; MLA is no longer involved. Your theme controls the destination of the link behind the image on your Media Page. You could modify the PHP template your theme uses to display the Media Page.

    You wrote “i actually want to make a page for it myself“. Instead of linking to the theme’s Media Page you can use the mla_link_href parameter to link to anything you like. Of course, you would have to work out a way for the destination page to be specific to each image in the gallery, “each image,another page“. You could pass the item’s ID value in the link and then create a PHP template to display the “info about the images” or you could use another [mla-gallery] with a custom markup template that displays the information you want.

    You can find more information about the mla_link_href parameter and about custom markup templates in the Settings/Media Library Assistant Documentation tab. I am traveling until June 20,but I can give you more specific guidance when I return home. Thanks for your understanding, your patience and your interest in the plugin.

    Thread Starter fideel

    (@fideel)

    Thank you for the info!
    Have a nice holiday!!

    Plugin Author David Lingren

    (@dglingren)

    I hope my suggestions proved useful. I am marking this topic resolved, but please update it if you have problems or further questions regarding the topic.

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

The topic ‘MLA makes a link automaticly’ is closed to new replies.