Joomla 1.7 弹出扩展以在内部加载模块 [英] Joomla 1.7 popup extension to load module inside
本文介绍了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
param2=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屋!
查看全文