Advanced search  

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

Pages: [1]   Go Down

Author Topic: Category page?  (Read 4952 times)

0 Members and 1 Guest are viewing this topic.

ninjapiraatti

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Category page?
« on: May 05, 2010, 10:02:36 am »


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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Category page?
« Reply #1 on: May 05, 2010, 11:01:48 am »

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 />';
}
?>
Logged

ninjapiraatti

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Category page?
« Reply #2 on: May 05, 2010, 11:07:12 am »

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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Category page?
« Reply #3 on: May 05, 2010, 11:16:56 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.
Logged

ninjapiraatti

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Category page?
« Reply #4 on: May 05, 2010, 11:39:24 am »

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.
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: Category page?
« Reply #5 on: May 05, 2010, 12:20:27 pm »

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

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Category page?
« Reply #6 on: May 05, 2010, 12:26:42 pm »

Thanks! I'll give it a shot.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.