Category page? Category page?
 

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

Category page?

Started by ninjapiraatti, May 05, 2010, 10:02:36 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

ninjapiraatti


I'm trying to make a page that would have a list of all the categories - much like the landing page has. Problem is that I don't want the categories to display on the landing page and I don't want the category page to have anything else. http://www.aalto-photo.com

Αndré

Code (cat.php) Select
<?php
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');

$result cpg_db_query("SELECT name FROM {$CONFIG['TABLE_CATEGORIES']}");
while (
$row mysql_fetch_assoc($result)) {
    echo 
$row['name'].'<br />';
}
?>

ninjapiraatti

That gives me a list of categories on a blank white page without CSS. What I'm after is a page that would work like any other but would include only categories.

Αndré

Quote from: ninjapiraatti on May 05, 2010, 11:07:12 AM
What I'm after is a page that would work like any other
Please elaborate. You asked for a list of all categories, you got a list of all categories. If you want to include the Coppermine design, add pageheader() and pagefooter() to the file. I'm still not sure what exactly you want to accomplish.

ninjapiraatti

Ok, I'll try to explain in more detail. What I want is a page that is exactly like the main page with anycontent, top rated, last additions etc. removed. In other words, main page with nothing but fully functional category list.

Joe Carver

You could try this plugin    
Category List Page Layout Change (Album list link)
. There are restrictions - your installation must be at svn 7361 or higher.

ninjapiraatti

Thanks! I'll give it a shot.