Displaying only the categories on the homepage Displaying only the categories on the homepage
 

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

Displaying only the categories on the homepage

Started by Maber, November 08, 2009, 01:21:43 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Maber

 Hi there,

Long time since I've used coppermine, but recently I concluded that the other gallery I was using, didn't do the stuff I wanted it to do...

Back to Coppermine then and everything works out fine now... but for one thing!

I'd like to display only the categories on the homepage.  Since I've got one categorie with subcategories (that don't display any albums right away) and some other categories without subcategories (that do display albums), I'd like to alter that situation.  I just need to see the categories with subcategories (if present) and that's it.  An example of what I mean can be found at http://www.boet.be/

I remember I've done this before... but just can't find the trick anymore  :-[

Perhaps it has something to do with the theme I'm using currently? (hermes_gray btw)

The link to my cpg : https://cmaber.pointclark.net/gallery/. It resides on my LAN-server, so it might be out from time to time.

Anyhow, any help or directions will be appreciated!

Pascal YAP


Maber

Quote from: Pascal YAP on November 08, 2009, 03:50:17 PM
Just open Coppermine's DOC, and look for CONFIG Page =>
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#admin_album_list

I'm guessing you're refering to this :

QuoteShow first level album thumbnails in categories

Use this setting to choose whether or not to display thumbnails from the first album of the categories listed on the default gallery entry page.

However, when I try to change that in the configuration, it just won't change...  :-[ ...

Now I'm looking at the _config table of the database... I suppose there is an item in there responsible for this particular configuration item? Perhaps I can change it manually?


Pascal YAP

in your page admin.php
Album List View (expl) => breadcrumb/catlist/alblist/random,2/lastup,2
Just delete ALBLIST

Maber

Quote from: Pascal YAP on November 08, 2009, 05:27:57 PM
in your page admin.php
Album List View (expl) => breadcrumb/catlist/alblist/random,2/lastup,2
Just delete ALBLIST

I found a load of posts that tell me not to do that and in fact (I tried anyway) if you do that it'll prevent to show the albums if you descend into a category which is not what I want.

You are right, I should be able to make it work by changing "Show first level album thumbnails in categories" to No.  But, if I try to do so, it'll revert immediately to Yes for no obvious reason...

I'll keep trying... and will post any possible solution that might come up... If someone might recognize the problem, please let me know... Meanwhile, tnx for the help Pascal :)

Maber

It seems it's the theme causing the problem...  If I put the standard theme back all works like expected.  The hermes_gray theme will always show albums that are placed directly into a main category.  >:(

Maber

Quote from: Maber on November 08, 2009, 06:37:15 PM
It seems it's the theme causing the problem...  If I put the standard theme back all works like expected.  The hermes_gray theme will always show albums that are placed directly into a main category.  >:(

So I went over to the theme.php of that particular theme and guess what I found...  ::)

// These parameters overide what the user inputs in the Configuration setup to prevent the theme from breaking.
$CONFIG['first_level'] = 1; //sets "Show first level album thumbnails in categories = no".


Which in fact is wrong!!!!  ::) It should read "Show first level album thumbnails in categories = yes"

No wonder it didn't work Pascal  ;)

A happy ending nonetheless  :D