Tell me more ×
SmugMug Stack Exchange is a question and answer site for SmugMug developers and end users. It's 100% free, no registration required.

I am looking for a way to have the EXIF info show up by default. I have setup a gallery to be thumbnail style. When the image is clicked on, it opens the Lightbox. It is then necessary to click on Show Details and then Info to show the EXIF info.

What I would like to be able to have it so that when the thumbnail is clicked it opens the Lightbox view with the EXIF info already displayed.

share|improve this question

2 Answers

It is possible with javascript. First add this to your bottom javascript box to make the Comment/Exif/Keywords box open by default:

    //-------------------------------------------------------------------------------------
    // Function to set initial lightBoxComment value to open
    // 
    // The way this works is it sets the default value to open, but if the user
    // closes it, then it will remember their value for the next day.  After a day
    // passes, it will default to open again.
    //
    // See http://www.dgrin.com/showthread.php?p=1368806 for support or questions.
    //-------------------------------------------------------------------------------------

function InitLightBoxDefaultValueToOpen()
    {
        if ((SM.util.getCookie('lightBoxDefaultSet') != 1) || !SM.util.getCookie('lightBoxComments'))
        {
            SM.util.setCookie('lightBoxDefaultSet', 1, 1);    // signify that we've set a default value so we won't keep setting it
            SM.util.setCookie('lightBoxComments', 1, 1);        // set it to show the light box comments
        }
    }
    InitLightBoxDefaultValueToOpen();

Then add this to make the Comment/Exif/Keywords box show the Exif info when opened. Goes also in the bottom javascript box:

function lbShowDefaultDetailsSection(){if(lightBoxExifRequestComplete){if(lightBoxCommentsEnabled&&lightBoxOpenDetailsSection=='Exif'){lbToggleDetails('Comments','lightBoxCommentsLink',{});return;}
lightBoxOpenDetailsSection=lightBoxOpenDetailsSection=='Comments'?'Exif':lightBoxOpenDetailsSection;if(lightBoxExifEnabled&&lightBoxOpenDetailsSection=='Exif'){lbToggleDetails('Exif','lightBoxExifLink',{});return;}
lightBoxOpenDetailsSection=lightBoxOpenDetailsSection=='Exif'?'Keywords':lightBoxOpenDetailsSection;if(lightBoxKeywordsEnabled&&lightBoxOpenDetailsSection=='Keywords'){lbToggleDetails('Keywords','lightBoxKeywordsLink',{});}}}
share|improve this answer
I will give that a try. Thanks – Bradford Benn Apr 29 '12 at 16:32

There is no option within SmugMug to make this happen. Can't say if it's not possible with some JS trickery or not, though.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.