【发布时间】:2014-05-04 21:25:55
【问题描述】:
对 Joomla 模板还很陌生,我现在在包含主菜单方面被困了一段时间......
我阅读了文档,发现我们需要使用标题标签和菜单的模块名称来将其包含到模板中。所以 id 做了.. 但无论我做什么菜单都不会显示。
我在 index.php 中的包含
<jdoc:include type="modules" name="mainmenu" title="Main Menu" />
菜单在 cms 中的外观
我还添加了这些行,它们为我提供了内容数据(因此连接必须正常);
<jdoc:include type="component" />
<jdoc:include type="modules" name="bottom" />
我的 tempalteDetails.xml 看起来像;
<?xml version="1.0" encoding="utf-8"?>
<extension version="2.5" type="template">
.......
<files>
<filename>index.php</filename>
<filename>templateDetails.xml</filename>
<folder>images</folder>
<folder>css</folder>
</files>
<positions>
<position>breadcrumb</position>
<position>left</position>
<position>right</position>
<position>top</position>
<position>user1</position>
<position>user2</position>
<position>user3</position>
<position>user4</position>
<position>footer</position>
</positions>
</extension>
【问题讨论】: