Jim;1471' said:
I may have missed it but I am looking for the ability to simply show the metadata at the bottom of each image instead of the horrid floaty things that only show up if you mouse over the image.
Is this possible in the current version or is this a feature request to move up a gear to "nearly perfect"?
Hi Jim,
I designed the gallery so that the viewport would be sized to accommodate the image dimensions, meaning that there's no space for the metadata beneath the images. Because the "framing area" of the page is unchanging, the metadata would need to be placed within the sliding area, the viewport, which would cause the viewport to become elongated.
If you're comfortable editing template files, you could probably effect this change yourself.
Open the galleryInfo.lrweb file and make the following changes:
Add the desired height, in pixels, to the math equations found on
line 332:
Code:
["appearance.scroller.height"] = function() return string.format( "%dpx", nonCSS.photoHeight + ( ( nonCSS.photoPadding + nonCSS.photoBorderWidth + nonCSS.scrollerPadding ) * 2 ) ) end,
line 342:
Code:
["appearance.content.height"] = function() return string.format( "%dpx", nonCSS.photoHeight + ( ( nonCSS.photoPadding + nonCSS.photoBorderWidth ) * 2 ) ) end,
line 346:
Code:
["appearance.section.height"] = function() return string.format( "%dpx", nonCSS.photoHeight + ( ( nonCSS.photoPadding + nonCSS.photoBorderWidth + nonCSS.scrollerPadding ) * 2 ) ) end,
Probably the best place to add the math is following the nonCSS.photoHeight variable, so they would look something like:
Code:
... nonCSS.photoHeight + 25 + ( ( ...
I think that's all you should need to do to the galleryInfo.lrweb file. Next, open the HTML template for whichever layout you're using. For example, if your thumbnails are positioned on the bottom, you'd want to edit the bottom.html file.
Find the div class="section", which ought to look like this:
Code:
<div class="section" id="<%= image.exportFilename %>-pane"><div style="margin-top: <%= math.floor( ( model.nonCSS.photoFrameTotalHeight - ( image.renditions.photos.height + ( ( model.nonCSS.photoPadding + model.nonCSS.photoBorderWidth ) * 2) ) ) / 2 ) %>px;"><img src="photos/<%= image.exportFilename %>.jpg" class="photo" width="<%= image.renditions.photos.width %>" height="<%= image.renditions.photos.height %>" alt="$image.metadata.title"<% if model.nonCSS.disableToolTip then %><% else %> onMouseover="ddrivetip('<%= image.metadata.caption %>')" onMouseout="hideddrivetip()"<% end %> /></div></div>
You'll want to add your metadata variables inside this div, between the final </div> and </div> tags, like this:
Code:
<div class="section" id="<%= image.exportFilename %>-pane"><div style="margin-top: <%= math.floor( ( model.nonCSS.photoFrameTotalHeight - ( image.renditions.photos.height + ( ( model.nonCSS.photoPadding + model.nonCSS.photoBorderWidth ) * 2) ) ) / 2 ) %>px;"><img src="photos/<%= image.exportFilename %>.jpg" class="photo" width="<%= image.renditions.photos.width %>" height="<%= image.renditions.photos.height %>" alt="$image.metadata.title"<% if model.nonCSS.disableToolTip then %><% else %> onMouseover="ddrivetip('<%= image.metadata.caption %>')" onMouseout="hideddrivetip()"<% end %> /></div>
$image.metadata.title
$image.metadata.caption</p></div>
Then, in the Web module, use the option to disable the hovering tool tips.
I think that should do it; if not, let me know and i'll have another look.
Cheers,
Matt