Page 1 of 1

Get current page title with API

Posted: Wed May 28, 2008 10:24 am
by bastienb
Hi,

I'm a developper of an open source web analytics software (spongestats.org).

I have developped a new feature for version 3.1 to get the page title from the current page based on an API.
Actually, only Wordpress is integrated but I would like to integrate some other CMS/Blog platforms, so I would like to know if there is an API feature included in MODX that I can use to get the current page title.

For example, in Wordpress, I use the API feature wp_title('',false);

Do you know if something similar is available in the Joomla API and if I can use it in an external marker ?

Regards,
Bastien.

Re: Get current page title with API

Posted: Thu May 29, 2008 2:24 pm
by bastienb
No one can help me about this issue ?

Thank you.
Bastien.

Re: Get current page title with API

Posted: Thu Jul 17, 2008 3:47 pm
by akame
I believe you can do the following:

Code: Select all

global $mainframe;
$page_title = $mainframe->getPageTitle();
Hope that's what you're looking for.
Jonnie

Re: Get current page title with API

Posted: Thu Jul 17, 2008 5:07 pm
by bastienb
It could be OK, thanks, I will integrate it on the next BETA.

Ty.
Bastien.