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

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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