-1

我刚刚开始学习将 html 转换为 joomla 模板 2.5,相当成功。

我的 html 看起来像:

Home Page:Header,Menu,slider,footer
About Page:Header,menu,content area,footer.

问题是如何创建关于页面以及其他页面,对于不同的页面,我有大约不同的主题,页眉,页脚,菜单是相同的,只是中间部分不同。

假设我有一个主要的中心 div

<div class="slider-wrapper theme-default">
<div id="slider" class="nivoSlider">
<a href="">  <img width="970" height="400" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/sldier1.jpg" alt="Black Leather Suit" title="" /></a></div></div>

我可以在滑块包装器 div 中添加 1 个以上的组件吗?

<jdoc:include type="modules" name="content" style="none" />
<jdoc:include type="modules" name="content" style="none" />
4

1 回答 1

1

Joomla sites are not like html sites. You don't manually create each page and save the html file. For this you create a new article in the Joomla backend using the article manager or a 3rd party extensions such as K2, or assign an installed component layout to a menu item.

You can also only have 1 component per page however, if you slider comes with a module, then you can load the module in an article by giving is a custom position and then adding the following code to you article:

{loadposition xxx}
于 2012-11-14T15:46:10.817 回答