Category page? Category page?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Category page?

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

Previous topic - Next topic

0 Members and 1 Guest 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.