Hi!
is it possible to create a list of all albums in my gallery with CPMFetch
sortet A->Z
and the category behind the album in a table?
like this?
| Albumname1 (link to album) | | category of Album 1 (link to category) | |
| Albumname2 (link to album) | | category of Album 1 (link to category) | |
| Albumname2 (link to album) | | category of Album 1 (link to category) | |
other way to do that?
greetz MONSTER
PS Antwort in Deutsch geht auch :)
Quote from: bngMONSTER on December 16, 2006, 03:16:39 PM
Hi!
is it possible to create a list of all albums in my gallery with CPMFetch
sortet A->Z
and the category behind the album in a table?
like this?
| Albumname1 (link to album) | | category of Album 1 (link to category) | |
| Albumname2 (link to album) | | category of Album 1 (link to category) | |
| Albumname2 (link to album) | | category of Album 1 (link to category) | |
other way to do that?
greetz MONSTER
PS Antwort in Deutsch geht auch :)
I have a client that has a requirement similar to that for a project I am working on. Fortunately that functionality will then be passed back into the development release.
But for now, cpmFetch does not have anything like that...
hi i did similer thing what you are asking hope can help you.
<?
include "cpmfetch.php";
$objCpm = new cpm('/wallpapers');
$objCpm->cpm_setReturnType("resultset");
$data = $objCpm->cpm_viewLastAddedMediaFrom(1000, 1000, "cat=6,18");
$cnt = 0;
$arrayofalbums = array();
foreach ($data as $row) {
if (! in_array($row['aTitle'],$arrayofalbums))
{
?>
<a href="wallpapers/thumbnails.php?album=<? print $row['pAid']; ?>"> <?
print $row['aTitle'];
print '</a>';
print "";
print "\n";
array_push($arrayofalbums,$row['aTitle']);
$cnt++;
print "<br>";
if ($cnt == 6) break;
}
}
$objCpm->cpm_close();
?>
This displays the list of albums from seleted category but you can leave this blank to get if from all categories.
Thanks
Niks