Forums / Developer / Get current page title from API / Comment49605
Bastien Bobe
Thursday 29 May 2008 7:09:40 am
OK, so could you try to add this code to your Exponential template to execute it on each page and see what value does it return for each page :
function get_page_title() { $current_title = $GLOBALS['ini']->variable( 'SiteSettings', 'SiteName' ); echo "Page title : $current_title"; } get_page_title();
I can't test it on a Exponential platform but if this script really show you the page of the title, I can provide you the BETA of SpongeStats 3.1 to see if there is something wrong.
Thank you very much for your help. Regards,Bastien.