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

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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.