![]()
|
|
TemplateInclude służy do dodawania pod-szblonu do szablonu głównego. Wszystkie elementy typu cms: sąinterpretowane w ten sam sposób co w szabloniw głównym.
<cms:TemplateInclude id="include" [XmlSource="",] [TemplateSource="",] />
Plik: recursive-top.xml
<?xml version="1.0" encoding="utf-8" ?>
<cms>
<template src="recursive/recursive-top.html"></template>
<form>
<lang switch="on">
<option value="pl-pl">Polski</option>
</lang>
</form>
</cms>
Szablon: recursive/recursive-top.html
<html xmlns:cms="http://www.w3.org/1999/xhtml">
<head></head>
<body>
<cms:Html id="TopHtml" />
<cms:TemplateInclude
id="include"
XmlSource="recursive/recursive-sub.xml"
TemplateSource="recursive/recursive-sub.html" />
</body>
</html>
W powyższym szblonie dodawany jest pod-szablon o nazwie recursive/recursive-sub.html. Wymaga on także pliku xml: recursive/recursive-sub.xml.
Plik recursive/recursive-sub.xml
<?xml version="1.0" encoding="utf-8" ?>
<cms>
<template src="recursive/recursive-sub.html"></template>
</cms>
Pod-szablon: recursive/recursive-sub.html
<head></head>
<body>Sub-sub-template
<cms:Image id="MyOne" />
<cms:Image id="MyTwo" /></body>
</html>
Metryka dokumentu |
|||
| Tytuł: | Indeks dokumantacji | ||
| Opis: | Spis stron dokumentacji | ||
| Źródło: | +CMS Content Management | ||
| Prawa autorskie: | +CMS Content Management Platform | ||
| Autor: | root | Zmodyfikowany przez: | root |
| Data utworzenia: | 2008-09-07 18:51:26 | Data modyfikacji: | 2008-09-10 17:13:51 |
| Data publikacji: | 2008-09-07 18:57:26 | ||