We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3722
    • 171 Posts
    In Gallery there is a field to enter a URL.
    How is this displayed on the page?

    I am using Galleriffic and I am displaying the Name and Description in the caption section.
    I want to display the URL below the captions.
    I cannot find any examples of it being used. Any ideas?

    Thanks
    BG66
      • 3722
      • 171 Posts
      ok, I am very close to figuring this out.

      I added this line to the gallerifficitemthumb.chunk.tpl file located here:
      /core/components/gallery/elements/chunks
      <a href="[[+url]]" target="_blank">[[+url]]</a>

      See here
      <li>
          <a class="thumb" name="[[+name]]" href="[[+image]]" title="[[+name]]">
              <img src="[[+thumbnail]]" alt="[[+name]]" />
          </a>
          <div class="caption">
      
              <div class="image-title">[[+name]]</div>
              <div class="image-desc">
                  [[+description]]
                  [[+tags:notempty=`<br /><em>[[%gallery.tags]]:</em> [[+tags]]`]]
              </div>
      		<a href="[[+url]]" target="_blank">[[+url]]</a>
          </div>
      </li>


      The one issue now is that I am running this locally and it’s adding "localhost" to the url.
      Will this be fine once I go live or do I need to alter the code?

      Thanks
      BG66
        • 3722
        • 171 Posts
        It seems like the line code <a href="...
        always spits out the base URL.

        When I change the template to this:
        <a href="" target="_blank">[[+url]]</a>

        I get this for a link
        http://localhost


        Is this a friendly URL problem?
        Can I code it to skip over the base URL?

        BG66