Old Album view

rated by 0 users
This post has 6 Replies | 3 Followers

Not Ranked
Posts 8
Points 115
Doug Evans Posted: Thu, Apr 12 2007 1:38 AM

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

Top 10 Contributor
Posts 3,424
Points 65,610
CS Developers
Ben Tiedt replied on Thu, Apr 12 2007 8:51 AM

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.

Ben Tiedt's Blog

  • | Post Points: 20
Not Ranked
Posts 8
Points 115

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?

Thanks!

  • | Post Points: 20
Top 10 Contributor
Posts 3,424
Points 65,610
CS Developers
Ben Tiedt replied on Sat, Apr 14 2007 10:58 AM

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.

Ben Tiedt's Blog

  • | Post Points: 20
Not Ranked
Posts 1
Points 20
cmock replied on Mon, Jun 4 2007 12:49 PM

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.

Thanks!

  • | Post Points: 20
Not Ranked
Posts 6
Points 75

 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?

 I'm not interested in the old theme, but rather the ability to view album thumbnails (using the album highlight image).

 Thanks,

Graham 

  • | Post Points: 20
Top 10 Contributor
Posts 3,424
Points 65,610
CS Developers
Ben Tiedt replied on Fri, Oct 12 2007 11:52 AM

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.

Ben Tiedt's Blog

  • | Post Points: 5
Page 1 of 1 (7 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com