i would like to have a rsform module in all my k2 items that autopopulates the subject and to fields with the k2 title and Authors email. so that users can get in touch with the item author.
In rsform i can populate the From field with the user email if logged in with the following code:
//<code> $user=&JFactory::getUser(); return $user->get('name'); //<<code>
How can i do the same to get the Title and Email from the context of the K2 item page.
i have been searching for quite a while for a solution but haven't found anything yet, any help will be much appreciated.
In rsform i can populate the From field with the user email if logged in with the following code:
//<code> $user=&JFactory::getUser(); return $user->get('name'); //<<code>
How can i do the same to get the Title and Email from the context of the K2 item page.
i have been searching for quite a while for a solution but haven't found anything yet, any help will be much appreciated.