coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: jhansle1 on November 18, 2007, 06:44:23 PM

Title: Select all category / album names and link
Post by: jhansle1 on November 18, 2007, 06:44:23 PM
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.
Title: Re: Select all category / album names and link
Post by: lobosden on November 19, 2007, 07:22:47 PM
<?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
Title: Re: Select all category / album names and link
Post by: jhansle1 on November 19, 2007, 10:20:19 PM
What exactly does this do?

Is there any documentation on this script?  Thanks in advance!
Title: Re: Select all category / album names and link
Post by: Joachim Müller on November 20, 2007, 08:13:17 AM
There is loads of documentation coming with cpmFetch. Read the sticky threads on this forum to find out more.