News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

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