coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: masuimi on November 15, 2013, 08:14:14 AM

Title: Keywords (anycontent.php) on category pages
Post by: masuimi on November 15, 2013, 08:14:14 AM
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
Title: Re: Keywords (anycontent.php) on category pages
Post by: ΑndrĂ© on November 21, 2013, 12:37:20 PM
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;