1
CyberGuin
xcgal: Making random thumbs link to Album thumbnail page
  • 2009/8/19 3:33

  • CyberGuin

  • Just popping in

  • Posts: 36

  • Since: 2005/2/16


Hi,

I have a client who wants a mosiac of random thumbnails on the index.php of xcgal. I am able to do this using the 'Album list view: The content of the main page' settings in the module config options.

However, the random thumb pics link to the displayimage.php for that pic. I want them to link to thehttp://blah.com/modules/xcgal/thumbnails.php?album=?? page

I just don't know how to do it. At the moment the code is:
Quote:
<a href="<{$pic.link_tgt}>"><{$pic.thumb}><br /></a>
. This is in the xcgal_thumb.html template.

I'm assuming I need to change the {$pic.link_tgt}...but to what? It needs to get the album number and use that to create a link to the thumbnails.php.

Also, As the albums won't be appearing on the index.php, I would like the album description to show under the album name when you go the thumbnails.php showing the images for that album. I tried adding Quote:
<p><{$album_desc}></p>
to the xcgal_thumb.html template but that didn't seem to work.

Any pointers gratefully received.

Cheers,

Tracy

2
ghia
Re: xcgal: Making random thumbs link to Album thumbnail page
  • 2009/8/19 6:34

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Check out the documentation of the CopperMine gallery. The options described there, you can use in the preferences for what and how to displaying images, eg:
catlist/alblist/random,2/lastup,2

Login

Who's Online

231 user(s) are online (188 user(s) are browsing Support Forums)


Members: 0


Guests: 231


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits