Hello all !
First, many thanks for the creator of this fabulous module !!!
I have to confess i tried to use it with version 1.XX without success, and lot's of tries and coffees ... V2.00 was installed really easily !!!
I would like to show the last three albums added to a category with a thumbnail of a picture. It can be done with cpm_viewLastUpdatedAlbumsFrom
However, when i click the thumb, it shows the picture full size. I would have preferred to show the entire album (or at least the first thumbs of the album) instead of a picture full size.
Is it possible ? Have i missed something ?
Thanks in advance for the clues ... ;-)
L@urent
Quote from: florennes-as.be on May 31, 2007, 10:10:01 PM
Hello all !
First, many thanks for the creator of this fabulous module !!!
I have to confess i tried to use it with version 1.XX without success, and lot's of tries and coffees ... V2.00 was installed really easily !!!
I would like to show the last three albums added to a category with a thumbnail of a picture. It can be done with cpm_viewLastUpdatedAlbumsFrom
However, when i click the thumb, it shows the picture full size. I would have preferred to show the entire album (or at least the first thumbs of the album) instead of a picture full size.
Is it possible ? Have i missed something ?
Thanks in advance for the clues ... ;-)
L@urent
Check the options array documentation - there are codes in there to tell it how to link, or even how to make your own custom links...
Hello !
That's right, i found it ! I have to set the 'imagelink' setting to 'album' in the $option array.
So, i have to add ; $options = array( 'imagelink' => 'album'); ?
First tries were not redirecting a hit to a picture to the relevant gallery ...
Help welcomed as i am little into php.
Thanks !!!
L@urent
Mhhh, i was a bit too quick, this works, here is the small sample ;
<?php
include "./engine/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./engine/cpmfetch/cpmfetch_config.php");
$options = array( 'imagelink' => 'album');
$objCpm->cpm_viewRandomMediaFrom("",1,4,$options);
$objCpm->cpm_close();
?>
Regards,
L@urent