Is there a way to display a widget into a modal window by using smoothbox in SociaEngine?

I am using a widget on my site and was wondering if I can display it using smoothbox modal window.

Add Comment
1 Answer(s)
Best answer

Because the modal windows display a defined view through the MooTools smoothbox plugin, you can do this if you create a new blank action in any controller and view for it. Render your desired widget in the view for the action, so when the action is called, it will display your view and the widget you have included in it. What is left is to call smoothbox modal window to show the action.

Here is how to show smoothbox by clicking a link below:

<?php echo $this->htmlLink(array(

'route'=>'default',

'module'=>'activity',

'controller'=>'index',

'action'=>'viewcomment',

'custom_param'=>$param,

'format'=>'smoothbox'

),

$this->translate('Comment'),

array('class'=>'smoothbox',))

?>

Geraldine Stevens Answered on November 23, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.