AlbumCovers

fedak
fedak's picture

Joined: 2003-12-14
Posts: 80
Posted: Fri, 2004-03-12 04:28

I've been wanting to add "album covers" to my gallery instance for awhile now, and I've held off customizing G1 in favor of waiting for G2. (esp since the "album text" mods to G1 gave me nearly the functionality I was looking for)

The scope would be as follows:

- Albums could optionally have a "cover page". The cover page would consist of a block of free form HTML that would be displayed in the content pane of the gallery page. Cover pages would not contain album items, which would instead start on page 2.

- The contents of the page would be editable online via an text edit box somewhere in the album admin. The ability to access this would be integrated into the security model.

- For albums that do not have cover pages, the album would behave normally.

Questions:

1) Is this something that anyone else is interested in or has asked for?

2) In your opinion, is the G2 code base stable enough that I could start tinkering an implementation?

If someone who's more familiar with the G2 architecture could scope out what would be involved in implementing this, I'd like to take a stab at coding it...

-fedak

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2004-03-12 16:04

fedak, this would easily work as a module (ie in the "album actions" choices you could pick "view album cover") but it's a bit tricky to work this as "page 1" of the album since that makes it layout dependent.
Perhaps you could develop your album cover as a layout that only handles display of the cover page itself and passes off to a sub-layout for album viewing? This requires getting the layout engine to use your layout when entering a new album, but accepting a given layout and continuing to use that layout while browsing within an album.. not quite sure how that would work.

The other option, which I think you're referring to when you mention the G1 album-summary, is to have one subalbum for your cover page and it contains one subalbum for the actual album contents.. you could still develop a layout for use in the cover-album to give you better control over how it appears, and then select a different layout for the content-album for viewing.. (since each G2 album can have its own layout).