Jump to content

My own addon


papie

Recommended Posts

hey there,

I've managed to make an addon for a component of mine. When we are in single view we are able to give a rating.

 

the problem I have right now is that I cannot figure out how to point to the rating from the list view?

 

I've read the Everwhere 2.0 Guide and there is something about category page:

require('components' . DS . 'com_jreviews' . DS . 'jreviews' . DS . 'framework.php' );
$JreParams['data']['extension'] = 'com_xxx';
$JreParams['data']['tmpl_suffix'] = '';
$JreParams['data']['controller'] = 'everywhere';
$JreParams['data']['action'] = 'category';
$JreParams['data']['listing_id'] = $xxx->id;

$Dispatcher = new S2Dispatcher('jreviews');
$jreDetail = $Dispatcher->dispatch($JreParams);

 

I've put this code in my foreach, but the $jreDetail is always false. Is there something specific that I must do?

for example this action category -> should I write a specific function in my controller?

 

Thank you in advance.

Link to comment
×
×
  • Create New...