Keywords (anycontent.php) on category pages Keywords (anycontent.php) on category pages
 

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

Keywords (anycontent.php) on category pages

Started by masuimi, November 15, 2013, 08:14:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

masuimi

Hello,

Is it possible to display the anycontent.php Keywords on category pages?

If not, would it be possible to include a feature in a future update where we can display the anycontent.php Keywords on category pages? Right now, I have it on the homepage of my gallery and it works great!

Thank you for your time

ΑndrĂ©

Have a look at the bottom of index.php, you'll find
                case 'anycontent':
                    if ($cat == 0) {
                        ob_start();
                        /**
                         * Any php code or HTML can be put in this file and will be displayed
                         */
                        include('anycontent.php');
                        $anycontent = CPGPluginAPI::filter('anycontent', ob_get_contents());
                        ob_end_clean();
                        echo $anycontent;
                    }
                    break;


I haven't tested that, but it should work as requested if you replace it with
                case 'anycontent':
                    ob_start();
                    /**
                     * Any php code or HTML can be put in this file and will be displayed
                     */
                    include('anycontent.php');
                    $anycontent = CPGPluginAPI::filter('anycontent', ob_get_contents());
                    ob_end_clean();
                    echo $anycontent;
                    break;