Select all category / album names and link Select all category / album names and link
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Select all category / album names and link

Started by jhansle1, November 18, 2007, 06:44:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jhansle1

I am having trouble finding a way to query the following information:

1.  Category Names
2.  Album Names

I would like to display a list of all my categories in my coppermine gallery, as well as the albums. 

I would also like the list (names of each) to all be links to each album / category.

Is there a way to do this via cpmfetch?

Thanks in advance!

Best Regards.

lobosden

#1
<?php    

  
include_once "./forum2/cpg1413/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./forum2/cpg1413/cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewLastAddedMediaFrom ("cat=0",1,1,array("windowtarget" => "_parent")); $objCpm->cpm_viewLastAddedMediaFrom ("cat=1,cat=1",1,1,array("windowtarget" => "_parent"));
  
$objCpm->cpm_close();

?>


is one I am working with

jhansle1

What exactly does this do?

Is there any documentation on this script?  Thanks in advance!

Joachim Müller

There is loads of documentation coming with cpmFetch. Read the sticky threads on this forum to find out more.