specify one album for kind='album' shortcode?

General questions on how to do things using Photonic

specify one album for kind='album' shortcode?

Postby scwtech » 26 Mar 2012, 09:21

Hi, I love your plugin and thank you for making it. I am successfully able to use the shortcode to insert the galleries and a set of photos from one specific gallery, but I have a couple questions:

- if I choose [gallery type='picasa' user_id='ID' kind='album'] it inserts a thumbnail for each public gallery in my account. however, I will be writing a blog post that will reference specific galleries and I would like to insert a thumbnail for each gallery as it comes up in the post. but using [gallery type='picasa' user_id='ID' kind='album' album='name_of_album'] results in NO album thumbnails being displayed. I have a feeling that the switch album='name' is reserved for the photos display only.

- if the name of an album has more than one word, and those words are separated by spaces, will it work to call it as album='name of album'?

- if I use the photos shortcode (such as [gallery type='picasa' user_id='ID' album='album_name']) I would like to only show the first few photos from the album, which I know I can do with the max_results switch. however, I'd still want people to be able to see all of the photos in the album once they click on a thumbnail and launch the gallery. is that possible?

Thanks!
scwtech
 
Posts: 2
Joined: 26 Mar 2012, 09:12

Re: specify one album for kind='album' shortcode?

Postby sayontan » 26 Mar 2012, 09:50

scwtech wrote:I have a feeling that the switch album='name' is reserved for the photos display only.

That is correct. You cannot display a single album thumbnail with this.

scwtech wrote:- if the name of an album has more than one word, and those words are separated by spaces, will it work to call it as album='name of album'?

You need to use the album slug that shows up in the URL. It is typically the concatenated and camel-cased album name. E.g. NameOfAlbum.

scwtech wrote:if I use the photos shortcode (such as [gallery type='picasa' user_id='ID' album='album_name']) I would like to only show the first few photos from the album, which I know I can do with the max_results switch. however, I'd still want people to be able to see all of the photos in the album once they click on a thumbnail and launch the gallery. is that possible?

No, it isn't possible to display some thumbnails on the main page, then the rest in the popped up gallery. You can display just the album thumbnail using the kind=albums switch, then clicking on it will show you a paginated view of your images.
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas

Re: specify one album for kind='album' shortcode?

Postby scwtech » 26 Mar 2012, 11:10

Thank you very much for your quick and thorough reply!

So, if I have more than one gallery in my picasa account, and I want to display only the thumbnail for a specific gallery within the body of a post, and then display the thumbnail for a different gallery later in the same post, I should probably find another plugin. I'm happy to look for another solution, and your plugin works well (and is quite beautiful), but it might not be what my (admittedly specific) needs dictate.
scwtech
 
Posts: 2
Joined: 26 Mar 2012, 09:12

Re: specify one album for kind='album' shortcode?

Postby sayontan » 26 Mar 2012, 11:31

There is probably an easy way out: CSS. You can use CSS to hide the other thumbnails. The link for each thumbnail gets a class "photonic-picasa-album-thumb". So you could add this to your theme's stylesheet:
Code: Select all
.photonic-picasa-image .photonic-picasa-album-thumb { display: none; }


This will kill all album thumbnails. Now, if you want to display a specific thumbnail for a specific post and your theme is coded to specifications, then each post will get an id element associated with it. E.g. If you see the demo page, my post has an id "post-1084". Specifically a thumbnail in that post can be displayed using this (all other thumbnails are hidden by the above):
Code: Select all
#post-1084 #photonic-picasa-album-104501548312142529333-1-5625728742773702977 .photonic-picasa-album-thumb { display: inline-block; }


A little bit of Firebug testing will get you the right selector.

Also, each time you invoke the shortcode, a position parameter gets incremented. E.g. in the above you have photonic-picasa-album-104501548312142529333-1-5625728742773702977. The same thumbnail, when you invoke the shortcode a second time will have an id photonic-picasa-album-104501548312142529333-2-5625728742773702977
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas


Return to Support Requests

Who is online

Users browsing this forum: No registered users and 0 guests