• Resolved netschmiede24

    (@netschmiede24)


    Hi – I am trying to build a gallery. I have a pod with a repeatable image field and a separate lightbox plugin, plus a plugin to add caption and description to media files.

    The field for images is called “fotos”. Now, the output starts as follows:

    <a href="{@fotos._src.2048x2048}">

    If I do so – the lightbox plugin will not pick up the caption from the image, if the image itself is bigger than 2048×2048 (at least one dimension). But it will pick up the caption, if the image is smaller (and thus a 2048×2048 version has never been rendered).

    That led me to the assumption, I should leave out the 2048×2048 – and just link to @fotos._src

    However, this will ALWAYS just display the thumbnail size of 150×150 ! What do I have to link to to get the ORIGINAL uploaded file in my lightbox?

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter netschmiede24

    (@netschmiede24)

    Found it myself. Just for the record – the output should read:

    <a href="{@fotos._src.fotos._img.widthxfotos._img.height}">

    Now it will always display the full size – AND the caption as wanted. ??

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @netschmiede24

    Good to hear you’ve found the solution. Though I can not make any sense of this haha. Shouldn’t this be {@fotos._src.full}?

    https://docs.pods.io/displaying-pods/magic-tags/using-magic-tags/#Image_Attachments

    Cheers, Jory

    Thread Starter netschmiede24

    (@netschmiede24)

    Well…. yes, that works as well. But why is this option not listed in the reference for this pod? I tried about every option offered, but I have never seen .full in the list! This would have saved me a lot of time …

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @netschmiede24

    I’ve forwarded you to the documentation for this.

    The reason your custom fix worked is because there is no image size named “fotos” and therefore it will fallback to the original (full) size image.

    What do you mean by the “reference”? Do you mean the list on the side when editing a Pods template? I’ll make a not to get this default (full) size added in there. Normally it isn’t recommended to use this image size as it is not optimized.

    Cheers, Jory

    Thread Starter netschmiede24

    (@netschmiede24)

    Yes, I meant the list on the side. Generally, I find the documentation very confusing. It is often difficult to find the right syntax and I am searching forever and doing a lot of trial and error to get what I need. The list on the side is generally the first thing I see, when writing the template, so it would be great, if this was somehow complete.

    Thanks!

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @netschmiede24

    I’ve made a patch for the next release: https://github.com/pods-framework/pods/pull/7184

    Cheers, Jory

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Template – Image URL for full size?’ is closed to new replies.