Get current page title with API

Discussion and education for beginner / novice programmers interested in embarking on the development process to take advantage of the extensible nature of the Joomla! CMS.
Locked
bastienb
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed May 28, 2008 9:52 am

Get current page title with API

Post by bastienb » Wed May 28, 2008 10:24 am

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.

bastienb
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed May 28, 2008 9:52 am

Re: Get current page title with API

Post by bastienb » Thu May 29, 2008 2:24 pm

No one can help me about this issue ?

Thank you.
Bastien.

akame
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Mon Feb 20, 2006 6:04 pm

Re: Get current page title with API

Post by akame » Thu Jul 17, 2008 3:47 pm

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

bastienb
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed May 28, 2008 9:52 am

Re: Get current page title with API

Post by bastienb » Thu Jul 17, 2008 5:07 pm

It could be OK, thanks, I will integrate it on the next BETA.

Ty.
Bastien.


Locked

Return to “Joomla! Coding 101”