Enabling RSComments! in Submissions Directory

Adding the RSComments commenting form in the Details Layout of the RSForm!Pro Submissions Directory menu item can be done using the RSComments! default syntax translated into PHP code.


Head to Components >> RSForm!Pro >> Manage Directories >> edit your form's directory >> PHP Scripts and add the following code in the Scripts called on details layout area:


$sId = JFactory::getApplication()->input->getInt('id');
$detailsLayout .= '{rscomments option="com_rsform" id="'.$sId.'"}';

This will add the RSComments! commenting form in the details Layout. The end result should look similar to the one in the image to the right:

Was this article helpful?

Yes No
Sorry about that

You Should Also Read

Enabling RSComments! in 'Submissions View'