Display anycontent.php inside categories and albums Display anycontent.php inside categories and albums
 

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

Display anycontent.php inside categories and albums

Started by TigerClaw, January 29, 2008, 01:17:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TigerClaw

How I can display anycontent.php inside categories:

http://coppermine-gallery.net/demo/cpg14x/index.php?cat=5

Or album:

http://coppermine-gallery.net/demo/cpg14x/thumbnails.php?album=28

The effect I'm trying to realize is the same I can have on homepage using anycontent. New tables with my content in it.
I know is it possible to modify theme.php and mod function.php behaviour but I can't use it because also the homepage will be affect by the mod.

Joachim Müller

anycontent.php hasn't been designed for that. Either use the custom_header / custom_footer feature or go the way you're already aware of (modifying themes/yourtheme/theme.php). You can add a switch there to check which category you're in and only come up with your custom output if $cat != 0