【发布时间】:2014-01-15 13:25:00
【问题描述】:
我最近安装了一个 joomla 模板,我可以看到它使用 xml 结构进行布局。我对此不是很熟悉。我可以使用现有标签,但我想添加一些东西,但找不到合适的标签
这是标题的结构:
<header1 order="1" id="yt_top" autosize="0">
<positions>
<position width="" height="" type="modules">top2</position>
</positions>
</header1>
<header2 order="2" id="yt_header" autosize="0">
<positions>
<position width="" height="" type="feature">@logo</position>
<position width="" height="" type="modules">logo_text</position>
<position width="" height="" type="modules">header2</position>
</positions>
</header2>
<menu order="3" id="yt_menuwrap" autosize="0">
<positions>
<position width="" type="feature">@menu</position>
</positions>
</menu>
如您所见,它将标题分为 3 个部分,但我需要将标题放在一个外部“div”内(如果我使用的是 html),然后将这 3 个作为它的子级。
我尝试添加一个通用标签,例如
<header></header>
<content></content>
<group></group>
<block></block>
没有任何效果,有什么建议吗?
【问题讨论】:
-
这是 Yootheme 模板吗?如果有,这段代码属于哪个文件?
-
实际上是一个 smartaddons 主题,但我在其他模板上也看到过这种结构,也许 jootheme 也是。该文件位于模板文件夹/layout/main-right.xml
-
也许你最好联系模板的开发者
-
是的,这可能会给我一个解决方案。我只是想知道这些xml文件是否有特定的标签,比如html标签,或者每个模板都有自己的结构,然后你又在哪里定义它们