I'm getting closer to getting the latest version of jomcomment integrated. I found the code in another post to get it to show up on a sobi page. That part works great, but I really want to use the ability for users to add the page to their favorites and to monitor the article for new content. Right now when adding a sobi article to my favorites it just gives a link to the sobi component. Azrul gave me the following response, but I'm unsure what to replace jcGetContentLink($row->contentid,1) with. I presume it's the soibitemid that I need?
else{
// Other components or 3rd party components that we dont know what
// the url is supposed to be.
$row->task = 'task=view';
$row->parentLink = jcGetContentLink($row->contentid, 1);
}
You will need to add another line before the code block above so that it looks like below,
else if($row->option == 'com_sobi2'){
$row->task = 'task=view';
$row->parentLink = jcGetContentLink($row->contentid, 1);
}else{
// Other components or 3rd party components that we dont know what
// the url is supposed to be.
$row->task = 'task=view';
$row->parentLink = jcGetContentLink($row->contentid, 1);
}
Replace
jcGetContentLink($row->contentid,1); with the appropriate link to the specific sobi2 item.