album/cat id and album/cat name album/cat id and album/cat name
 

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

album/cat id and album/cat name

Started by cocostaff, March 09, 2007, 01:30:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cocostaff

Is there a simple way to get a list of Album name & Album id ?? same question for category. How the id is determined by coppermine ? Does it correspond to the rank of the album in the coppermine albumlist ?

Thanks !

Joachim Müller

The album and category IDs are counted upwards, so the time of creation is the criteria that is being taken into account. Not sure if cpmFetch contains a method to populate an array/list of existing albums or categories.

cocostaff

so there is no direct way to know the specific ID of an album/cat... do you think it is possible to perform a database query to list the album ID in front of the album names ?


Nibbler

Just go into phpmyadmin and browse your album and category tables.

vuud

Quote from: cocostaff on March 09, 2007, 03:42:13 PM
so there is no direct way to know the specific ID of an album/cat... do you think it is possible to perform a database query to list the album ID in front of the album names ?



I think you could use CpmFetch, have it return a result set and output based on that.  I figure since it is posted here, I would suggest a cpmfetch orienteed solution.

:)

Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

cocostaff

Nibbler's solution is simple and work well, you can export the entire coppermine_albums table in csv file ! Thanks

Vuud, i think that a cpmfetch oriented solution will be great, and calling album_title in cpmfetch function  instead of id can be more efficient.

vuud

Quote from: cocostaff on March 09, 2007, 04:38:47 PM
Nibbler's solution is simple and work well, you can export the entire coppermine_albums table in csv file ! Thanks

Vuud, i think that a cpmfetch oriented solution will be great, and calling album_title in cpmfetch function  instead of id can be more efficient.

I probably won't implement that ... I can see the posts, hundreds of them, all due to typos :)

That being said, calling by title may be "easier" for the user, but I doubt a text search in SQL would be more efficent.

People tend to just code in CpmFetch stuff once... for that its easy enough to just look at your gallery in a web page and note the album id or cat id...

Thats my opinion anyway
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco