Categories always on the bottom Categories always on the bottom
 

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

Categories always on the bottom

Started by Peter R, December 16, 2008, 10:53:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Peter R

I changed the way the category list looks like. Now it is a list with all categories and albums in it. Because all categories are on the first level, this looks pretty neat. Because the list is a bit long now,  it looks better if this list is on the bottom of the page. For this I changed the layout in the admin from :
breadcrumb/anycontent/catlist/alblist/lastup,4
to
breadcrumb/anycontent/alblist/lastup,4/catlist
This works well, until an album opens. The album will be under the category list, and I want the albums to open above the  category list. The category list should always be on the botton, no matters what is shown.

I found out showing is arranged in index.php where is found :
if (is_array($matches)) {
                switch ($matches[1]) {

And that is where I lost track.
Where should I start looking, or is this also an admin setting?

Thanks in advance

phill104

All is set in the themes folder where everything can be re-arranged. Don't edit core files but edit your theme. Take a look at the faq's here and it will explain everything for you.

Also take a look at these docs.

http://documentation.coppermine-gallery.net/en/theme_create.htm

Taking note of this from the docs.

"How the theme engine works
When a Coppermine page is being parsed, the core code will call theme functions. If those functions exist in your custom theme, they will be taken into account. If a particular function does not exist in your custom theme, the core function will be used. The core functions (the default theme behaviour if you want to put it that way) reside in includes/themes.inc.php. Therefor, you mustn't edit includes/themes.inc.php, under no circumstances, as all your changes will be lost when upgrading in the future. Everything that possibly could be accomplished by editing include/themes.inc.php can be accomplished by editing themes/yourtheme/theme.php as well - stuff defined in your custom theme will take precedence over the core theme functions.

"
It is a mistake to think you can solve any major problems just with potatoes.

Peter R

I've really searched a lot, but didn't find it. Because I couldn't find it in the theme section, I started to take a close look at the core code. With what is possible in the theme section, together with the admin setting changing to (breadcrumb/anycontent/alblist/lastup,4/catlist), I menaced to get the category list on the bottom. This was only working for the index page. As soon as you open an album, the thumbnails.php page opens with the categories on top.

I am certain, well as certain as a professional beginner can be  ;D, that getting the category list on the bottom of thumbnails.php is only possible by changing this particular core page. It was not difficult. Just move the line:
theme_display_cat_list($breadcrumb, $cat_data, '');
to just above the line which will show the pagefooter.

Oke, now I succeeded in what I wanted to achieve. My final question is now, is this the way to go, or is this really to be don in the theme files, and am I not looking good enough.