[Solved] How to retrieve the ID of the article in which the form module is integrated

Hello,

I integrate a Fabrik form module in Joomla! articles.
I need to use a module because I have 2 file upload fields in my form and the module seems to be the only way to send attached files when submitting the form. It is not working when using Fabrik content plugin.

How to retrieve the ID of the article in which the form module is integrated.
I used to eval return JRequest :: getInt ('origid', 0); in a Fabrik field but it doesn't seem to work when a form is in a module.

Thank you for your help
 
Try
Code:
return JRequest::getVar('id');
or, since JRequest is supposedly deprecated,
Code:
return JFactory::getApplication()->input->get('id');
 
Last edited:
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top