Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Customize Thumbnail.php layout  (Read 3074 times)

0 Members and 1 Guest are viewing this topic.

dereksurfs

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 29
Customize Thumbnail.php layout
« on: December 25, 2006, 06:40:35 am »

I would like to create a more complex/varied pattern for the thumbnail image display in my custom theme.   Instead of every thumbnail looking exactly the same in the standard grid layout I would like to do something like this photographer/web designer did:
http://www.widerange.org/gallery.php?gallery=LargeFormat

This is a php template based layout.  If you examine the layout you will see a pattern emerge based around *two* thumbnail sizes.  This pattern consists of tables with varied rows, number of columns and sizes which repeats itself every ~15 images.  The three primary challenges in doing this are:
1.  Using two thumbnail sizes.
2.  Creating a more complex table based pattern (vs. standard grid layout) which repeats itself every ~15 images.
3.  Use this within the Coppermine framework/paradigm for laying out and displaying thumbnails.

As far as the first challenge, I could create the larger thumbnails myself if need be and place them in a different directory/sub directory. 

And for the second challenge, I have already examined the discovered the more complex table based pattern used. 

The third one is the larger challenge for me after examining CPG's current thumbnail template and function structure - The template_thumbnail_view is very simple.  It is just a template for a single cell in a table containing 1 thumbnail which will then repeat n times. 

My question is would it be possible in CPG to create a custom thumbnail template made up of *more* than one image like the one shown above and use that layout instead?  I think this would involve some database lookups which I am OK with.     I am just not sure how to lay things out within CPG.

Thanks for any tips you can provide,

Derek
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Customize Thumbnail.php layout
« Reply #1 on: December 25, 2006, 04:03:22 pm »

Not sure about doing this directly within Coppermine for each album but if you want to make a splash page for your gallery take a look at cpmFetch. You could create the splash page and maybe even have it generate a random image layout.
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

dereksurfs

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 29
Re: Customize Thumbnail.php layout
« Reply #2 on: December 25, 2006, 08:24:40 pm »

Thanks Gizmo,

I will take a look at cpmFetch to see if it can handle a varied cell pattern for layouts. 

I had a feeling this kind of layout of may go beyond standard CPG functionality.  I thought this may require a custom php page of some sort with a little looser structure.

- Derek

Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 21 queries.