我们正在从1.5迁移(偏头痛)到2.5,我们从1.5修改的模板正在工作,除非它在使用时不会显示任何内容。请帮帮我!
以下是代码:
<body>
<div id="container">
<div id="header"> <a href="<?php echo $this->baseurl ?>/home.html"><img src="images/stories/blank.gif" width="180" height="93" border="0" alt="Home"></a>
<div id="hdnav">
<jdoc:include type="modules" name="headnav" style="none" />
</div>
</div>
<div style="clear:both;"></div>
<div id="navigation">
<div id="topnav">
<jdoc:include type="modules" name="topnav" style="none" />
</div>
</div>
<div style="clear:both;"></div>
<div id="content">
<div id="maincontent">
<jdoc:include type="message" />
<jdoc:include type="component" />
</div>
<?php if($this->countModules('right')) : ?>
<div id="rightcol">
<jdoc:include type="modules" name="right" style="xhtml" />
</div>
<?php endif; ?>
</div>
<div id="footer">
<jdoc:include type="modules" name="footer" style="none" />
</div>
</div>
<jdoc:include type="modules" name="debug" />
</body>
</html>
发布于 2013-02-27 23:22:07
请花时间为div编写新的css。桌子很古老,很容易被打破,对移动设备来说简直是一场噩梦。
如果你这样做了,你就不需要它们了。不管怎么说,他们真的很容易。
模板覆盖只是一个组件或模块视图模板,它被复制到模板的html子文件夹下(在稍微不同的文件夹结构中),Joomla将使用这些而不是原始文件。
因此,例如,如果要覆盖项目视图,则在
/components/com_content/views/article/tmpl/
它的覆盖将放置在
/templates/your_template/html/com_content/article
一个小问题:确保始终复制整个tmpl文件夹的组件,您必须覆盖模板内的所有布局。
您可以找到更多关于core的信息。
https://stackoverflow.com/questions/15122687
复制相似问题