我想在动物园扩展的完整页面中添加joomla模块位置。 我试过这些代码,但没有工作。 <?php $this->renderModules('users-bodule'); ?>
and <jdoc:include type="modules" name="fixed-b" style="xhtml" />
在动物园扩展的整页中添加模块位置
我该怎么做?
我想在动物园扩展的完整页面中添加joomla模块位置。 我试过这些代码,但没有工作。 <?php $this->renderModules('users-bodule'); ?>
and <jdoc:include type="modules" name="fixed-b" style="xhtml" />
在动物园扩展的整页中添加模块位置
我该怎么做?
试试这个,
如果你想呈现从PHP部分或通过AJAX类似下面的模块。
$document = JFactory::getDocument();
$renderer = $document->loadRenderer('module');
$Module = JModuleHelper::getModule('mod_fmDataGrid');//the following section for custom param if you are not using any param simply avoid it.
$Params = "param1=bruno\n\rparam2=chris";
$Module->params = $Params;
echo $renderer->render($Module);
简单地形成模板。
<jdoc:include type="modules" name="position-0" />
望其帮助..
ZOO有本地元素插入任何模块中任何你想要的布局。
命名Joomla模块(其他类别)。
只需将其作为其他任何元素插入即可。
和这个 没有工作。 –
user2858542