Kris-B / nanoGALLERY

image gallery simplified - jQuery plugin. Touch enabled, responsive, justified/cascading/grid layout and it supports pulling in Flickr, Google Photos and self hosted images.
https://nanogallery2.nanostudio.org/
439 stars 101 forks source link

How to disable imagedescription but not gallerydescription? #112

Closed mgk89 closed 8 years ago

mgk89 commented 8 years ago

Hi, what a great work you did!

by this code I have the perfect settings for my gallery-preview, but I would like to disable the imagedescription (DSC07644, etc.) how can that be done? Is it by thumbnailL1? I tried, but nothing happened.

Thanks in advance!

  thumbnailHoverEffect:[{name: 'imageScale150', duration:700}],
            thumbnailLabel: {
            position: 'overImageOnBottom',
            display: true,
            displayDescription: true,
            titleMaxLength: 25,
            hideIcons: true,
            align: 'center',
            itemsCount: 'description',
            },

            i18n: { 

            thumbnailLabelItemsCountPart1: '',
            thumbnailImageDescription: 'Klicken zum Vergrößern',
            breadcrumbHome: 'alle Gallerien'
             }
Kris-B commented 8 years ago

Hi, did you try to set displayDescription to false?

Kris-B commented 8 years ago

read your request too fast... sorry

yes, you can use something like :

   ...
   thumbnailLabel: {
            position: 'overImageOnBottom',
            display: true,
            displayDescription: false,
            titleMaxLength: 25,
            hideIcons: true,
            align: 'center',
            itemsCount: 'description',
            },
   thumbnailL1Label.displayDescription: true,
   ...

This will display a description only on the first level (albums)

mgk89 commented 8 years ago

hi,

thanks for your reply!

actually I want it the other way:

Description for the galleries is fine (is working right now), but I want to hide the description (or to be exactly the filename) for the thumbnails. I would like to keep the description thumbnailImageDescription: 'Klicken zum Vergrößern', but not the 'DSC8541' or whatever.

thanks for your help!

PS: actually it's all about that div: <div class="labelImageTitle labelTitle nGEvent" style="">dsc06811</div>

Kris-B commented 8 years ago

Actually, I had corrected m'y answer directly on github, but you probably got the uncorrected one... Can you please check on the github page? Le 5 avr. 2016 6:12 PM, "mgk89" notifications@github.com a écrit :

hi,

thanks for your reply!

actually I want it the other way:

Description for the galleries is fine (is working right now), but I want to hide the description (or to be exactly the filename) for the thumbnails. I would like to keep the description thumbnailImageDescription: 'Klicken zum Vergrößern', but not the 'DSC8541' or whatever.

thanks for your help!

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/Kris-B/nanoGALLERY/issues/112#issuecomment-205876577

Kris-B commented 8 years ago

Please check the source code of the demo "Pagination 1 row" on http://nanogallery.brisbois.fr/#examples

mgk89 commented 8 years ago

hi, thank you for your answer.

thumbnailL1Label: {displayDescription: true},

will actually cause that for the image-thumbnails the description thumbnailImageDescription: 'Klicken zum Vergrößern', is not shown anymore, but the image name "DSC 12345" is still shown. I'm not sure if I can explain what I mean :) I would like to have that description text, but not the filename.

thanks for you help!

Kris-B commented 8 years ago

can you please create a codepen ?

mgk89 commented 8 years ago

hi,

I actually could make it work as I wanted by:

display: false, displayDescription: false,

and

thumbnailL1Label: {display: true, displayDescription: false},