[font=Consolas,]How do I pass custom parameters to Portlets when using display like <?php $this->widget(‘RecentComments’); ?>. [/font]
[font=Consolas,]
[/font]
[font=Consolas,]For example how to pass number 15, that will be used for limit?[/font]
[font=Consolas,]And how to read it?[/font]
kokomo
(Mwerlberger85)
2
How to create a breadcrumb widget
or
How to create nice modal login widget with a CJuiDialog
should show you how widget’s basically work.
binkabir
(Binkabir)
3
Hello,
create a public variable in the extends cportlet class
class xyz extends cportlet {
public $count;
}
in ur view when u call the widget pass an array of variable to it
$this->widget('xyz',array('count'=>'15');
cheers