PDA

View Full Version : Can I Hide "Gallery Pages" for galleries with 1 page?


spider-t
Aug-24-2005, 02:44 PM
Can I Hide "Gallery Pages" for galleries with 1 page?

There seems to be a lot of neat tricks out there. Is this one?

I want to hide "Gallery Pages" for my galleries that only have one page. And there are actually few enough of them, that I can do special gallery specific CSS stuff. But I was wondering if there was any way to put code in there that would do:

If gallerypages = 1
- - don't display "Gallery Pages"
else
- - leave the defaults

Am I dreaming?

thanks!
Trish
example 1 page gallery -> http://www.trishtunney.com/gallery/384106/

Mike Lane
Aug-24-2005, 04:00 PM
Can I Hide "Gallery Pages" for galleries with 1 page?

There seems to be a lot of neat tricks out there. Is this one?

I want to hide "Gallery Pages" for my galleries that only have one page. And there are actually few enough of them, that I can do special gallery specific CSS stuff. But I was wondering if there was any way to put code in there that would do:

If gallerypages = 1
- - don't display "Gallery Pages"
else
- - leave the defaults

Am I dreaming?

thanks!
Trish
example 1 page gallery -> http://www.trishtunney.com/gallery/384106/ If it's something you feel that you can do on a gallery specific basis then just do this:

.gallery_XXXXXX .pageNav, .gallery_YYYYYY .pageNav, etc... {
visibility:hidden;
}

Where XXXXXX and YYYYYY are the smugmug gallery ids. The etc just means that you can put as many of those in there that you want followed by a comma, don't put the etc... into the code when you do this.

There seems to be an issue right now with the implementation of the gallery specific class. The only thing that gets put in the page is class="gallery_" until you click on a thumbnail. Once a thumbnail is clicked the page refreshes with class="gallery_XXXXXX". So that means for now the above solution will work like you want it to only when someone clicks on a thumbnail.

Mike Lane
Aug-24-2005, 04:04 PM
Consolidated into the CSS, Cobranding, and You (http://www.dgrin.com/showthread.php?p=153186#post153186) thread.

Andy
Aug-24-2005, 04:10 PM
.gallery_XXXXXX .pageNav, .gallery_YYYYYY .pageNav, etc... {
visibility:hidden;
}

and this just goes in the css section of customization?

Mike Lane
Aug-24-2005, 04:21 PM
and this just goes in the css section of customization?
Yuperoo... We just need that to be an inline declaration which is what you get with the css box in the cobranding page.

spider-t
Aug-25-2005, 09:41 AM
Yuperoo... We just need that to be an inline declaration which is what you get with the css box in the cobranding page. I'm still getting the "gallery pages:" text, even after I click on thumbnails.

I gave this statement a try:

.gallery_11747 .pageNav, .gallery_383313 .pageNav, .gallery_384106 .pageNav, .gallery_274717 .pageNav {
visibility:hidden;
}

...and put it in the 'Stylesheet HTML' section.

The 4 galleries:
http://www.trishtunney.com/gallery/373313
http://www.trishtunney.com/gallery/11747
http://www.trishtunney.com/gallery/384106
http://www.trishtunney.com/gallery/274717

Ideas?

thanks!!
Trish

Mike Lane
Aug-25-2005, 10:12 AM
I'm still getting the "gallery pages:" text, even after I click on thumbnails.

I gave this statement a try:

.gallery_11747 .pageNav, .gallery_383313 .pageNav, .gallery_384106 .pageNav, .gallery_274717 .pageNav {
visibility:hidden;
}

...and put it in the 'Stylesheet HTML' section.

The 4 galleries:
http://www.trishtunney.com/gallery/373313
http://www.trishtunney.com/gallery/11747
http://www.trishtunney.com/gallery/384106
http://www.trishtunney.com/gallery/274717

Ideas?

thanks!!
Trish I'm showing that each of the gallery pages: text goes away in every one of those galleries except for the first gallery. But you got the gallery number wrong in the first gallery you put ".gallery_383313 .pageNav" when you should have put ".gallery_373313 .pageNav".

So change that pesky 8 to a 7 and see what happens in that first page.

I have just gone through and verified that the last 3 pages do infact hide the gallery pages: text after you click on a thumbnail in both Firefox and IE. Anyone else?

spider-t
Aug-26-2005, 12:19 AM
I'm showing that each of the gallery pages: text goes away in every one of those galleries except for the first gallery. But you got the gallery number wrong in the first gallery you put ".gallery_383313 .pageNav" when you should have put ".gallery_373313 .pageNav".

So change that pesky 8 to a 7 and see what happens in that first page.

I have just gone through and verified that the last 3 pages do infact hide the gallery pages: text after you click on a thumbnail in both Firefox and IE. Anyone else?
Looks like the tags show when I'm logged in. That wasn't obvious to me. But you're right, it is working. Thanks. Will the have-to-click-a-thumbnail thing be fixed in the next set of changes?

thanks!
Trish

Mike Lane
Aug-26-2005, 07:18 AM
Looks like the tags show when I'm logged in. That wasn't obvious to me. But you're right, it is working. Thanks. Will the have-to-click-a-thumbnail thing be fixed in the next set of changes?

thanks!
Trish
My sources say yes....

Okay, so my source is JT...

He says yes.