【发布时间】:2015-06-05 01:25:17
【问题描述】:
我正在创建一个运行多个模板的网站。默认模板没有问题,但其他分配的模板有问题。
1) 内部模板没有调用组件/模块/插件所需的资产文件。我正在手动插入 css 和 js 文件。
2) 仅在其主页上显示某些组件或在内部页面中显示其他组件的代码在非默认模板中不起作用。示例代码:
<?php if($this->countModules('travelnhomepagecheck')) { ?>
<jdoc:include type="modules" name="travel_segment_threeimagerotator" style="xhtml" />
<br />
<jdoc:include type="component" />
<?php } else { ?>
<table width="100%" border="0" cellpadding="2">
<tr>
<td width="65%" style="vertical-align:top;">
<jdoc:include type="component" />
</td>
<td width="33%" style="vertical-align:top;">
<jdoc:include type="modules" name="travel_segment_rightCol" style="xhtml" />
</td>
</tr>
</table>
<?php } ?>
它只显示模板主页的元素,而不是内部页面。将不胜感激任何正确方向的帮助。
【问题讨论】:
标签: php joomla joomla3.0 joomla-template