【问题标题】:SocialEngine: Display a widget into a modal window using smootboxSocialEngine:使用 smootbox 将小部件显示到模式窗口中
【发布时间】:2013-05-15 09:48:10
【问题描述】:

我在群组插件中有一个小部件,用于显示我的群组 我在“创建新组”旁边创建一个按钮,即“导入组” 我想要这个按钮在带有平滑框的模态窗口中显示我的小部件的内容 谢谢你

【问题讨论】:

  • 只需将 /format/smoothbox 添加到您的网址

标签: widget socialengine


【解决方案1】:

你可以这样做:在任何控制器中创建一个新的空白动作并查看它。然后将您的小部件呈现到此操作的视图中。之后调用 Smoothbox 模态窗口以使用包含您的小部件的视图显示所需的操作。单击下面的链接如何显示平滑框的示例:

<?php echo $this->htmlLink(array(
                                 'route'=>'default',
                                 'module'=>'activity',
                                 'controller'=>'index',
                                 'action'=>'viewcomment',
                                 'custom_param'=>$param,
                                  'format'=>'smoothbox'
                           ), 
                           $this->translate('Comment'), 
                           array('class'=>'smoothbox',)) 
?>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-06-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多