【发布时间】:2013-02-27 21:23:17
【问题描述】:
我们正在从 1.5 迁移(我应该说是迁移)从 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>
【问题讨论】:
-
您提供的资源不足。除非有人在您的代码中发现语法错误,否则我们无能为力。
-
您的错误可能在其他地方,而不是在此代码中。你做了 com_content 覆盖吗?错误日志中有什么内容吗?
-
哦不!非常抱歉!我正在迁移别人的代码。刚刚意识到他们确实有 com_content 覆盖,我不太熟悉。不太确定他们想做什么。我删除了它们,现在内容正在呈现,但它呈现为 div,原始开发人员将它放在表格中(至少,将他们的 css 写入其中),因此与旧站点不完全匹配。猜猜我必须重写样式表以使 div 与旧站点中表格的样式相匹配,对吗?再次为我的困惑和没有提供足够的信息感到抱歉。感谢您的所有帮助!
-
要么,要么您必须进行新的覆盖。甚至两者都有
-
天哪!你会碰巧知道关于覆盖的任何好的指南吗?我还没有找到很多好的。再次感谢您!
标签: joomla joomla2.5 joomla-template