Joomla 1.7弹出扩展可将模块加载到内部 [英] Joomla 1.7 popup extension to load module inside

查看:83
本文介绍了Joomla 1.7弹出扩展可将模块加载到内部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请告知我,如果弹出窗口中是否有任何可用于显示模块的扩展,并且应该在用户登录后加载弹出窗口.

Please let me know, if there any extensions available to display module inside the popup, and popup should load after user login.

场景:

  • 我有一个民意测验模块,用户登录网站后应该会弹出一次.
  • 我需要从后端通过id或模块位置指定模块.
  • 用户将在登录网站后投票给民意调查,并在投票后关闭弹出窗口.
  • 如果是非商业扩展,那就太好了.

请为此提出建议.

推荐答案

尝试一下,

您可以在弹出窗口或任何其他页面(也可以在ajax页面中)中加载任何模块.通过使用以下代码

You can load any module inside popup or any other page(in ajax page too).By using the following codes

 $document = &JFactory::getDocument();
 $renderer = $document->loadRenderer('module');

 $Module = &JModuleHelper::getModule('mod_fmDataGrid');

 $Params = "param1=bruno\n\rparam2=chris";//This will only required when you pass module params through code
 $Module->params = $Params;
 echo $renderer->render($Module);

您可以创建弹出窗口,生成弹出内容的部分也可以尝试上面的代码.

You can create the popup ,The section generating popup content try the above code too.

希望这对您有帮助.

这篇关于Joomla 1.7弹出扩展可将模块加载到内部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆