Shorten description in album page Shorten description in album page
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Shorten description in album page

Started by Swissy, October 05, 2006, 03:47:01 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Swissy

quesion... I have a number of photos with detailed (long!) descriptions... basically listing a number of names of people in the photos. Is there a way to shorted the description on the main album page view, and have the full description listed on the individual photo viewing page?

something like "From Left to right is..." on the album page, with "from left to right is Joe Blow, Dane Doe, and all the rest of the idiots" on the individual photo page?

otherwise when the photos with the long descriptions are towards the top, the next row of photos is way down the page as the entire description is displayed.

Sorry if this was discussed before, as I did a search but was not sure exactly what to search for!  ;D

Thanks for any help... Coppermine is going to be a godsend for me!
Jim

Joachim Müller

Try something like Possibility to scroll long texts ... CSS. The thread originally refered to cpg1.3.x, but the stuff discussed there should still apply for cpg1.4.x. Basic advice is: use CSS to limit the amount of text to be displayed.

Swissy

#2
thanks... I tried it and it did work. however, I wonder if it would be possible to do without the scroll bars? I don't need the full description with the thumbnail, only with the intermediate photo. I'll play with it and see if I can turn off the scrollbar while stiull having it shorten the wording...  but if anyone has that answer I'm all ears!

So far, as a 2 day user of Coppermine, I'm impressed with both the program AND the support in here. Thanks!

EDIT: FOUND IT! Changed overflow:auto to overflow:hidden and it just just what I wanted it to!!

studeo

#3
QuoteEDIT: FOUND IT! Changed overflow:auto to overflow:hidden and it just just what I wanted it to!!

where did you find the code..I can use this change as well. Were you able to add the trailing dots at the end of the shortened caption?

Thanks

Joachim Müller

Quote from: TranzNDance on August 23, 2004, 06:18:42 PM
in style.css, I added:
.alb_desc {
width:100%;
height:150px;
position:relative;
overflow:auto;
}


studeo

#5
Thank You. I used the following code in theme.css culled from many posts for the thumbnail description:

.thumb_caption {
        font-size: 80%;
        padding: 1px;
        display : block;
        position:relative;
        overflow:hidden;
        height:25px;


Where the 'overflow: hidden' hides the scrollbar
and the 'height: 25 px' only allows two lines of text description to be displayed.

I'm still interested in ending the abreviated 2nd line of text with trailing dots such as '...'

My abum descriptions are short so I did not need to apply the mod to that style.