Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Select all category / album names and link  (Read 4204 times)

0 Members and 1 Guest are viewing this topic.

jhansle1

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Select all category / album names and link
« 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.
Logged

lobosden

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 75
Re: Select all category / album names and link
« Reply #1 on: November 19, 2007, 07:22:47 pm »

Code: [Select]
<?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
« Last Edit: November 19, 2007, 07:23:18 pm by GauGau »
Logged

jhansle1

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Select all category / album names and link
« Reply #2 on: November 19, 2007, 10:20:19 pm »

What exactly does this do?

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Select all category / album names and link
« Reply #3 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 15 queries.