• 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: Hidden field

Hidden field 13 years 3 months ago #12622

Hi,
Can someone tell me how (if possible) to capture the page title with a hidden field in a form.

Example:

I have a form in an article with title "birds"
Is it possible to capture the title birds in a hidden field.

Would save me heaps of work.

Cheers :)
The administrator has disabled public write access.

Re:Hidden field 13 years 3 months ago #12645

  • scott.garrett2
  • scott.garrett2's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 2
put this in the 'default field' box. (including the //<code> bits)

//<code>
$doc = JFactory::getDocument();
return $doc->getTitle();
//</code>


www.rsjoomla.com/customer-support/docume...-the-page-title.html
The administrator has disabled public write access.

Re:Hidden field 13 years 2 months ago #12784

There are a few "Placeholders" and one of them is the siteurl. Add this to your admin email:
 
<p>Site Url: {global:siteurl}</p>

Greg
All Call Technologies
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!