|
|
Mit QUIQQER gebauten Webseiten können verschiedene Layouts haben (z. B. volle Breite oder mit linkem Sidebar). Damit das möglich ist, muss das Template verschiedene Layouts definieren.
|
|
|
|
|
|
Im Moment sind 4 Standardlayouts:
|
|
|
- `start page` - volle Breite
|
|
|
- `no sidebar` - für Unterseiten, die keinen Sidebar haben, sollte aber aus verschiedenen Gründen nicht mit dem Layout **star page** versehen werden
|
|
|
- `left sidebar` - Layout mit Inhalt und links dem Sidebar
|
|
|
- `right sidebar` - Layout mit Inhalt und rechts dem Sidebar.
|
|
|
|
|
|
Hier ein umfassendes Beispiel mit 4 Standardlayouts:
|
|
|
|
|
|
```xml
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<site>
|
|
|
|
|
|
<!-- global attributes -->
|
|
|
|
|
|
<!-- The section is only relevant if the template extends the pages -->
|
|
|
<!-- with additional functionalities (e. g. turn on / off the headers). -->
|
|
|
<attributes>
|
|
|
<attribute>(...)</attribute>
|
|
|
</attributes>
|
|
|
|
|
|
<settings>
|
|
|
<category name="templateBusinessPro.siteSettings">
|
|
|
<settings>
|
|
|
<title>
|
|
|
(...)
|
|
|
</title>
|
|
|
</settings>
|
|
|
</category>
|
|
|
</settings>
|
|
|
<!-- end global attributes -->
|
|
|
|
|
|
|
|
|
<!-- layouts -->
|
|
|
<layouts>
|
|
|
<layout type="layout/startPage"
|
|
|
image="bin/layouts/startPage.png">
|
|
|
<title>
|
|
|
<locale group="quiqqer/template-businesspro" var="admin.layout.startpage" />
|
|
|
</title>
|
|
|
<description>
|
|
|
<locale group="quiqqer/template-businesspro" var="admin.layout.startpage.desc" />
|
|
|
</description>
|
|
|
</layout>
|
|
|
|
|
|
<layout type="layout/noSidebar"
|
|
|
image="bin/layouts/noSidebar.png">
|
|
|
<title>
|
|
|
<locale group="quiqqer/template-businesspro" var="admin.layout.noSidebar" />
|
|
|
</title>
|
|
|
<description>
|
|
|
<locale group="quiqqer/template-businesspro" var="admin.layout.noSidebar.desc" />
|
|
|
</description>
|
|
|
</layout>
|
|
|
|
|
|
<layout type="layout/leftSidebar"
|
|
|
image="bin/layouts/leftSidebar.png">
|
|
|
<title>
|
|
|
<locale group="quiqqer/template-businesspro" var="admin.layout.leftSidebar" />
|
|
|
</title>
|
|
|
<description>
|
|
|
<locale group="quiqqer/template-businesspro" var="admin.layout.leftSidebar.desc" />
|
|
|
</description>
|
|
|
</layout>
|
|
|
|
|
|
<layout type="layout/rightSidebar"
|
|
|
image="bin/layouts/rightSidebar.png">
|
|
|
<title>
|
|
|
<locale group="quiqqer/template-businesspro" var="admin.layout.rightSidebar" />
|
|
|
</title>
|
|
|
<description>
|
|
|
<locale group="quiqqer/template-businesspro" var="admin.layout.rightSidebar.desc" />
|
|
|
</description>
|
|
|
</layout>
|
|
|
</layouts>
|
|
|
|
|
|
</site> |
|
|
\ No newline at end of file |