PDA

View Full Version : File name included in caption...


MT Stringer
Nov-19-2008, 05:41 PM
How can I display the filename as well as a caption for each pic in my gallery?

Some pics have a caption, but the filename doesn't appear. Others without captions have the filename displayed.

Is thre any code that I can insert in the caption that will display both image name and caption?
Thanks in advance.
Mike

jfriend
Nov-19-2008, 05:53 PM
How can I display the filename as well as a caption for each pic in my gallery?

Some pics have a caption, but the filename doesn't appear. Others without captions have the filename displayed.

Is thre any code that I can insert in the caption that will display both image name and caption?
Thanks in advance.
Mike

If you have filenames enabled, which it sounds like you do, then add this CSS to always display it:

#fileNameBoxWrapper {display:block;}

MT Stringer
Nov-19-2008, 06:16 PM
If you have filenames enabled, which it sounds like you do, then add this CSS to always display it:

#fileNameBoxWrapper {display:block;}

I must have done something wrong because it didn't work.
I added the code to the CSS box and clicked "Update".
Mike

jfriend
Nov-19-2008, 07:58 PM
I must have done something wrong because it didn't work.
I added the code to the CSS box and clicked "Update".
Mike

Can you give me a link to a gallery where you expect it to work. Before it can work, you have to have enabled filename display in the customize gallery screen by setting filenames to Yes. If you have it set to No, then filenames are not put into the page at all and this CSS won't show anything.

MT Stringer
Nov-20-2008, 04:36 PM
Can you give me a link to a gallery where you expect it to work. Before it can work, you have to have enabled filename display in the customize gallery screen by setting filenames to Yes. If you have it set to No, then filenames are not put into the page at all and this CSS won't show anything.

John, here's a link to one of my galleries.
http://mtstringer.smugmug.com/gallery/2975860_ht4Tt#161033732_WfSGM

I have filenames turned on in all of my galleries.

NOTE: In a couple of the "Nature galleries", I have already manually added the filenames to the captions. I guess Ill have to back and do some editing on those.

Thanks.
Mike

jfriend
Nov-20-2008, 05:26 PM
John, here's a link to one of my galleries.
http://mtstringer.smugmug.com/gallery/2975860_ht4Tt#161033732_WfSGM

I have filenames turned on in all of my galleries.

NOTE: In a couple of the "Nature galleries", I have already manually added the filenames to the captions. I guess Ill have to back and do some editing on those.

Thanks.
Mike

I don't know why it doesn't work. Smugmug isn't putting the filename into the page. The fileNameBoxWrapper object is there, but it's completely empty. So, the CSS shows it, but there's nothing inside it. Maybe this functionality it busted? Or maybe something else is preventing filenames from showing. I don't know.

jfriend
Nov-20-2008, 05:50 PM
I filed a bug inquiry about it here (http://www.dgrin.com/showthread.php?p=969586#post969586). We'll have to see what they say.

Andy
Nov-20-2008, 05:58 PM
It's working fine?

http://img.skitch.com/20081121-njh7e8nwfpm7my5ix1a8xcm4ya.jpg

Are you guys not seeing that? :ear

jfriend
Nov-20-2008, 06:05 PM
It's working fine?



Are you guys not seeing that? :ear

OK, it is working for me. It confusing because nothing shows in the fileNameBoxWrapper in View Page Source (which is what threw me off), but apparently the filename is added dynamically if you have it enabled.

And, Mike I am seeing it in your galleries now too. Looks like it's working fine.

MT Stringer
Nov-20-2008, 06:32 PM
OK, it is working for me. It confusing because nothing shows in the fileNameBoxWrapper in View Page Source (which is what threw me off), but apparently the filename is added dynamically if you have it enabled.

And, Mike I am seeing it in your galleries now too. Looks like it's working fine.

Thanks for the help. I really appreciate it.
Mike

Ron Ludekens
Nov-28-2008, 02:44 PM
I too would like to show both the file name and caption. The proposed solution listed above does not seem to be working for me either.

Example gallery: http://www.creatorspalette.com/gallery/4800193_jn3wY#285151678_fCofp

Any ideas?

Ron Ludekens www.CreatorsPalette.com

jfriend
Nov-28-2008, 02:49 PM
I too would like to show both the file name and caption. The proposed solution listed above does not seem to be working for me either.

Example gallery: http://www.creatorspalette.com/gallery/4800193_jn3wY#285151678_fCofp

Any ideas?

Ron Ludekens www.CreatorsPalette.com (http://www.CreatorsPalette.com)

I see you have the right CSS, but did you set your gallery customization to allow filenames? Only when you do both can you get both a caption and a filename.

Ron Ludekens
Nov-28-2008, 05:54 PM
I see you have the right CSS, but did you set your gallery customization to allow filenames? Only when you do both can you get both a caption and a filename.

Thank you for checking. Yes, all my galleries are set to show file names (unless an oops in my settings). The many that I checked are set correctly but the file names do not show. I even moved the new CSS code to the top, middle and bottom of the CSS modification frame and it made no diffrence (in case something else changed it). I assume the code will apply to existing galleries and not just newly uploaded galleries.

MT Stringer
Nov-28-2008, 07:46 PM
Thank you for checking. Yes, all my galleries are set to show file names (unless an oops in my settings). The many that I checked are set correctly but the file names do not show. I even moved the new CSS code to the top, middle and bottom of the CSS modification frame and it made no diffrence (in case something else changed it). I assume the code will apply to existing galleries and not just newly uploaded galleries.

Ron, the file name appears below the caption. Check out my site and see if yours looks like that. NOTE: Some may have the filename in the caption line. That's the one's I edited to include the filename before I discovered the fix.

www.mtstringer.smugmug.com (http://www.mtstringer.smugmug.com)

Hope this helps.
Mike

Ron Ludekens
Nov-28-2008, 08:35 PM
Ron, the file name appears below the caption. Check out my site and see if yours looks like that. NOTE: Some may have the filename in the caption line. That's the one's I edited to include the filename before I discovered the fix.

www.mtstringer.smugmug.com (http://www.mtstringer.smugmug.com)

Hope this helps.
Mike
Mike, I see the file names on your site. They sure do not show anywhere on my site. Maybe my file names are too long - have date appended to front of image number for a 18 digit.jpg name.

Side note: love your Egret photos.

Ron

jfriend
Nov-28-2008, 08:50 PM
I too would like to show both the file name and caption. The proposed solution listed above does not seem to be working for me either.

Example gallery: http://www.creatorspalette.com/gallery/4800193_jn3wY#285151678_fCofp

Any ideas?

Ron Ludekens www.CreatorsPalette.com (http://www.CreatorsPalette.com)

You have some syntax errors in your CSS that are keeping the last bit from working:

Change:

/*********************/
/ Always Show File Name even with Caption/
/*********************/
#fileNameBoxWrapper {
display:block;
}


to this:

/********************
Always Show File Name even with Caption
********************/
#fileNameBoxWrapper {
display:block;
}

The middle line in your comment is illegal syntax which ruins the CSS that follows. When I fix that, the filenames show for me. /* starts a comment and */ ends a comment so your first line is OK and your third line is OK, but the middle line is illegal.

FYI, same is true for the CSS after this:

/********************/
/ Footer Modifications/
/********************/

Ron Ludekens
Nov-28-2008, 09:09 PM
John,

That fixed it. Thank you!:clap

Ron Ludekens

Planefreak
Jan-17-2009, 11:48 AM
Hi,

I have the settings explained in this thread to expose filenames in my CSS box, but in one of my three galleries (link below) they are not shown, although I have filenames set to "Yes" in the gallery customization.

What is different with this gallery?
http://www.vienna-aviation.net/gallery/7095946_eSRrq

I want captions + filenames in all of my galleries, as the filenames contain the date on which the image was taken.

TIA,
Manfred

jfriend
Jan-17-2009, 12:59 PM
Hi,

I have the settings explained in this thread to expose filenames in my CSS box, but in one of my three galleries (link below) they are not shown, although I have filenames set to "Yes" in the gallery customization.

What is different with this gallery?
http://www.vienna-aviation.net/gallery/7095946_eSRrq

I want captions + filenames in all of my galleries, as the filenames contain the date on which the image was taken.

TIA,
Manfred

It appears that the gallery you linked is now showing your customizations. I can think of three reasons why that could be:

Hide Owner is set to Yes instead of No
Appearance is set to Smugmug instead of Custom
The gallery belongs to a community where the community administrator asserts control over the look of the galleries in the community.It's probably item #2.

Planefreak
Jan-17-2009, 01:25 PM
Thanks a lot jfriend!

It was item #2, as you had expected. :thumb

brgds,
Manfred

It appears that the gallery you linked is now showing your customizations. I can think of three reasons why that could be:
Hide Owner is set to Yes instead of No
Appearance is set to Smugmug instead of Custom
The gallery belongs to a community where the community administrator asserts control over the look of the galleries in the community.It's probably item #2.