How can I get back the old view where you go to a gallery and see a list of the albums with thumbnail for each, then go into an album to see sub-albums or the photos? I really liked that layout, along with the overlapped photo frames.
Thanks!
Doug
You could take the theme from CS2.1 and upgrade it to be used in CS2007. CS2007 does not support selecting a theme for each gallery -- the CS2.1 "default" theme is used in CS2007.
So if I understand it correctly, a user can have a blog and can theme choose a custom theme for it, and a user can have their own gallery, but the user can not change the theme for it, all users must have the same gallery theme? WHY?
You are correct. Similarly, a user can be the owner of a file folder, but they cannot theme the folder.
While this was removed in CS2007, it is possible to re-instate it (just as it is possible to support per-folder theming) but would require some additional code.
Has anyone has implemented the code to function like the old gallery, and if so would you mind sharing it? I also much prefer the photostack theme to the current default.
Aside from the look and feel or themes...
Can anyone tell me how to implement the old Album thumbnail view interface?
Doug Evans: ...where you go to a gallery and see a list of the albums with thumbnail for each, then go into an album to see sub-albums or the photos?
...where you go to a gallery and see a list of the albums with thumbnail for each, then go into an album to see sub-albums or the photos?
I'm not interested in the old theme, but rather the ability to view album thumbnails (using the album highlight image).
Thanks,
Graham
Unfortunately, CS2007 does not provide an easy way to get the featured post for an album. However, there are two options to get the album list with preview image...
1. Always show a random photo from the album:
<CSGallery:PostCategoryList runat="server"> <HeaderTemplate><ul></HeaderTemplate> <ItemTemplate> <li> <CSGallery:GalleryPostImage runat="server" UseRandomPost="true" ImageType="Thumbnail" /> <CSGallery:PostCategoryData runat="server" LinkTo="ViewCategory" Property="Name" /> </li> </ItemTemplate> <FooterTemplate></ul></FooterTemplate></CSGallery:PostCategoryList>
2. Load the preview image using data-binding syntax (defaulting to the random photo if no featured photo is defined):
<CSGallery:PostCategoryList runat="server"> <HeaderTemplate><ul></HeaderTemplate> <ItemTemplate> <li> <CSGallery:GalleryPostImage runat="server" DataSource='<%# ((int) Eval("FeaturedPostID" )) > 0 ? CommunityServer.Galleries.Components.GalleryPosts.GetPicture((int) Eval("FeaturedPostID" )) : CommunityServer.Galleries.Components.GalleryPosts.GetRandomPicture((int) Eval("SectionID" ), (int) Eval("CategoryID" )) %>' ImageType="Thumbnail" /> <CSGallery:PostCategoryData runat="server" LinkTo="ViewCategory" Property="Name" /> </li> </ItemTemplate> <FooterTemplate></ul></FooterTemplate></CSGallery:PostCategoryList>
Both of these samples render a simple list that will probably require restyling -- but hopefully this is enough to get you started.
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com