• 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: Get page title when clicking on form menu item

Get page title when clicking on form menu item 12 years 3 months ago #20985

Hi, I am creating a website feedback form, for which a menu item in the footer of each page links to. Is there a way to get the page title of the page where the menu item was clicked, then how would I then post that page title into a hidden field of the form? J.2.5
The administrator has disabled public write access.

Get page title when clicking on form menu item 11 years 10 months ago #23873

Did you have a solution?
I was looking for this too.

Thanks.
The administrator has disabled public write access.

Get page title when clicking on form menu item 11 years 10 months ago #23899

  • octavian
  • octavian's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 783
  • Thank you received: 110
Have you tried:
//<code>
$doc = JFactory::getDocument();
return $doc->getTitle();
//</code>
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.

Get page title when clicking on form menu item 11 years 5 months ago #25726

@ octavian unfortunately the code gives the title of the page that the form is placed in/
i am also looking for a similar thing
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!