Author Topic: Multi-level html gallery  (Read 15770 times)

Offline bcap

  • Newcomer
  • *
  • Posts: 35
    • View Profile
Multi-level html gallery
« on: March 28, 2007, 07:43:40 AM »
Is there a way (maybe in a later upgrade) to have PM do a hierarchical web-gallery, linking to the ones below?

For example, if my photos were in this layout:

/03232007/StPaul/700
/03232007/StPaul/800
/03232007/StPaul/900
/03232007/StMikes/800
/03232007/StMikes/900
/03232007/Myer/800

I'd like to have a photo gallery that had one page for 03232007 that said "StPaul", "StMikes", and "Myer". Under "StPaul", it had links to "700", "800" and "900" and similariy under StMike sand Myer.

What do you think? I think it'd be really helpful and eliminate a lot of manual work.

Offline bcap

  • Newcomer
  • *
  • Posts: 35
    • View Profile
Re: Multi-level html gallery
« Reply #1 on: April 01, 2007, 02:19:04 PM »
Anyone?

Kirk? What do you think?

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25025
    • View Profile
    • Camera Bits, Inc.
Re: Multi-level html gallery
« Reply #2 on: April 01, 2007, 03:27:27 PM »
Is there a way (maybe in a later upgrade) to have PM do a hierarchical web-gallery, linking to the ones below?

For example, if my photos were in this layout:

/03232007/StPaul/700
/03232007/StPaul/800
/03232007/StPaul/900
/03232007/StMikes/800
/03232007/StMikes/900
/03232007/Myer/800

I'd like to have a photo gallery that had one page for 03232007 that said "StPaul", "StMikes", and "Myer". Under "StPaul", it had links to "700", "800" and "900" and similariy under StMike sand Myer.

What do you think? I think it'd be really helpful and eliminate a lot of manual work.

I know of no easy (or even mildly difficult) way to do what you're asking.  Each usage of the Exporter templates knows nothing about prior invocations and they would need to track these things so that an outer page would be created that would link to all of your sub-galleries.

We would need to create a different Exporter template that you could use to tell the template about all of your sub-galleries, let you pick an image for each one, etc.

I'll think about it.

-Kirk

Offline bcap

  • Newcomer
  • *
  • Posts: 35
    • View Profile
Re: Multi-level html gallery
« Reply #3 on: April 01, 2007, 05:18:17 PM »
Kirk, how about instead of something where you compile galleries for each folder, you compile a gallery from the top folder.

It then goes and searches each containing folders (or maybe specified containing folders) and creates a gallery for each folder that contains images.

Using my previously stated folder structure:

/03232007/StPaul/700
/03232007/StPaul/800
/03232007/StPaul/900
/03232007/StMikes/800
/03232007/StMikes/900
/03232007/Myer/800

One could select the folder "03232007" and select the "Make Multi-Level Gallery" (or whatever you want to call it) option.

An overview: The code would look in "03232007" for any photos - none found. It would then look in each containing folder, recursively looking for photos. It woudl keep track of when it found photos and what galleries it has created.

For example:

It'd look in "StPaul" - No photos found, now look in each containing folder.

It'd look in "700" (alphabetically first folder inside "StPaul") - Oh, there are photos here! It would make a gallery of the photos in the "700" folder and return back to the "StPaul" directory. It would take note that, so far, there is 1 gallery named "700" contained in "Stpaul".

It'd look in "800" (alphabetically next folder insdie "StPaul") - Oh, there are photos here! It would make a gallery of the photos in the "800" folder and return back to the "StPaul" directory. It would take note that, now there are 2 galleries in "StPaul": "700" and "800".

Once it finished looking in "StPaul" and it returned back to "03232007" to look in the next folder (i.e. "StMikes"), it would create an index gallery for "StPaul" (listing off the galleries found in "StPaul" - "700" and "800").

Once it finished looking in "StMikes" and "Myer", it would return an inex gallery for "03232007" with 3 links on it - "StPaul", "StMikes" and "Myer" each linking to their respective sub-indexes.

I honestly don't think it woudl be that hard. If you'd like i can conjure up some pseudo code.

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25025
    • View Profile
    • Camera Bits, Inc.
Re: Multi-level html gallery
« Reply #4 on: April 01, 2007, 05:29:32 PM »
Kirk, how about instead of something where you compile galleries for each folder, you compile a gallery from the top folder.

It then goes and searches each containing folders (or maybe specified containing folders) and creates a gallery for each folder that contains images.

Using my previously stated folder structure:

/03232007/StPaul/700
/03232007/StPaul/800
/03232007/StPaul/900
/03232007/StMikes/800
/03232007/StMikes/900
/03232007/Myer/800

One could select the folder "03232007" and select the "Make Multi-Level Gallery" (or whatever you want to call it) option.

An overview: The code would look in "03232007" for any photos - none found. It would then look in each containing folder, recursively looking for photos. It woudl keep track of when it found photos and what galleries it has created.

For example:

It'd look in "StPaul" - No photos found, now look in each containing folder.

It'd look in "700" (alphabetically first folder inside "StPaul") - Oh, there are photos here! It would make a gallery of the photos in the "700" folder and return back to the "StPaul" directory. It would take note that, so far, there is 1 gallery named "700" contained in "Stpaul".

It'd look in "800" (alphabetically next folder insdie "StPaul") - Oh, there are photos here! It would make a gallery of the photos in the "800" folder and return back to the "StPaul" directory. It would take note that, now there are 2 galleries in "StPaul": "700" and "800".

Once it finished looking in "StPaul" and it returned back to "03232007" to look in the next folder (i.e. "StMikes"), it would create an index gallery for "StPaul" (listing off the galleries found in "StPaul" - "700" and "800").

Once it finished looking in "StMikes" and "Myer", it would return an inex gallery for "03232007" with 3 links on it - "StPaul", "StMikes" and "Myer" each linking to their respective sub-indexes.

I honestly don't think it woudl be that hard. If you'd like i can conjure up some pseudo code.

Really, that's not necessary.

I don't think it's an issue if whether there are some images in a folder or not.  What needs to be identified is whether there is an exported gallery there, so identifying the index.html file would be what you would look for.  But then once you've found that, what would be the image that would represent that gallery?  What would you want to call that gallery link?  It's that information that is lacking.

-Kirk

Offline bcap

  • Newcomer
  • *
  • Posts: 35
    • View Profile
Re: Multi-level html gallery
« Reply #5 on: April 01, 2007, 05:41:24 PM »
Well see Kirk I was just thinking of working backwards instead of making a gallery for this folder, this folder and this folder and then tryign to link them.

Maybe you could specify with a keyword or a tag or star rating which one to use for the thumbnail?

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25025
    • View Profile
    • Camera Bits, Inc.
Re: Multi-level html gallery
« Reply #6 on: April 01, 2007, 07:41:04 PM »
Well see Kirk I was just thinking of working backwards instead of making a gallery for this folder, this folder and this folder and then tryign to link them.

Maybe you could specify with a keyword or a tag or star rating which one to use for the thumbnail?

Or it could just use the first thumbnail in the thumbs directory as the representative image.

-Kirk

Offline bcap

  • Newcomer
  • *
  • Posts: 35
    • View Profile
Re: Multi-level html gallery
« Reply #7 on: April 01, 2007, 08:28:15 PM »
Yeah Kirk, that works fine for now. And then once more and more people become reliant on it and more requests come through you can have an option to customize it.

What do you think?

I really don't think it'd be that difficult.

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25025
    • View Profile
    • Camera Bits, Inc.
Re: Multi-level html gallery
« Reply #8 on: April 01, 2007, 08:40:35 PM »
Yeah Kirk, that works fine for now. And then once more and more people become reliant on it and more requests come through you can have an option to customize it.

What do you think?

I really don't think it'd be that difficult.

Sure.  I just cannot begin working on it until an update to 4.5.

-Kirk

Offline bcap

  • Newcomer
  • *
  • Posts: 35
    • View Profile
Re: Multi-level html gallery
« Reply #9 on: April 02, 2007, 09:01:28 AM »
Great Kirk. Thanks

Offline bcap

  • Newcomer
  • *
  • Posts: 35
    • View Profile
Re: Multi-level html gallery
« Reply #10 on: April 02, 2007, 07:04:40 PM »
Kirk if you need any assistance with this please let me know.