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

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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