coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Mr. Rogers on October 26, 2007, 08:36:37 PM

Title: Displaying links to albums under categories on home page
Post by: Mr. Rogers on October 26, 2007, 08:36:37 PM
Is there a way to create links to the albums within a category on the home page? For example, if I have an "Images" category with 10 albums in it, can I have my home page show the Images category thumbnail, title, and description and then under that, list out links to the albums within that category like:

Images
GIF, JPG, PNG, TIFF,...

The closest option I've seen is "Show first level album thumbnails in categories" however I don't want all those details and just plain links. Thanks.
Title: Re: Displaying links to albums under categories on home page
Post by: just_some_guy on October 26, 2007, 10:13:08 PM
basically, mysql select the title and album id from the database where category = $cid and echo it below the categorys as a link, i think your like id will be the album id, and the title can be the link.
Title: Re: Displaying links to albums under categories on home page
Post by: Joachim Müller on October 27, 2007, 10:24:24 AM
Another option that comes to mind if you don't have the coding skills for the solution suggested above is using bbcode to manually add link sto the albums. Another option would be enabling "Show first level album thumbnails in categories" and then removing the extra info you don't want to see displayed from your theme.

Quote from: just_some_guy on October 26, 2007, 10:13:08 PM
mysql select
If you go for the alternative proposed by just_some_guy, make sure to use the database query functions built into coppermine instead of coming up with native mysql commands, as this will require you to create another database connection. Not recommended unless you really know your way around.
Title: Re: Displaying links to albums under categories on home page
Post by: Mr. Rogers on October 29, 2007, 03:29:49 PM
Thanks for the help. I was going to try the database calls but when I realized how dead simple using bbcode was then it was no question. Our albums won't change much so using static links will work out just fine.