Keyword

How to get author id form a viewed K2 article

  • federico
  • federico's Avatar Topic Author
  • Offline
  • New Member
More
14 years 7 months ago #81660 by federico
Hello I’m trying to get the id of the author of a displayed content of k2 to use with a form made with chronoform connected to a database,


-


The id is stored in the database #_k2_items colum created_by


 


In the case of irticles written with joomla default editor, the code to get such info is something like:


$article =& JTable::getInstance('content'); $article->load(JRequest::getInt('id'));
$author = $article->created_by;
echo $author;


 


 


How can have the same for k2 content author?


Someone can help me?


Thanks

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum