• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Joomla 3 Get the page Title

Joomla 3 Get the page Title 9 years 10 months ago #27939

Hello to everyone!

Could you please notice how to get page title where form was submitted? On Joomla 2.5 it works with that code in hidden-field:
$doc = JFactory::getDocument();
return $doc->getTitle();
www.rsjoomla.com/support/documentation/v...-the-page-title.html

But its doesnt work in Joomla 3.2.2 or higher

Thanks for help!
The administrator has disabled public write access.

Joomla 3 Get the page Title 9 years 10 months ago #27940

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
please make sure to use the <code> tags as presented in the article. the default value for the field has to look like this:
//<code>
$doc = JFactory::getDocument();
return $doc->getTitle();
//</code>

if the above doesn't work, try the javascript method.
My help is not official customer support. To receive your support, submit a ticket by clicking here
The administrator has disabled public write access.

Joomla 3 Get the page Title 9 years 9 months ago #28174

  • euge001
  • euge001's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
javascript method doesn't work too
The administrator has disabled public write access.

Joomla 3 Get the page Title 9 years 9 months ago #28187

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
euge001 wrote:
javascript method doesn't work too

Are you sure that is doesn't work...? Perhaps your implementation is wrong!

PS: All provided sample scripts are tested.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Joomla 3 Get the page Title 8 years 10 months ago #31319

  • celine
  • celine's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 19
for my doesn't work too ... with php methode
some help ?
The administrator has disabled public write access.

Joomla 3 Get the page Title 5 years 11 months ago #38171

  • one
  • one's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
I have tested both method PHP and JS and they not work on J3.5.7 and RSForm!Pro 2.0.12
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!