| 1 |
[#-------------- Sample FTL Template --------------]
|
| 2 |
|
| 3 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
| 4 |
[#assign cms=JspTaglibs["cms-taglib"]]
|
| 5 |
[#assign cmsu=JspTaglibs["cms-util-taglib"]]
|
| 6 |
|
| 7 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
| 8 |
<head>
|
| 9 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
| 10 |
<title>${content.title!content.@name}</title>
|
| 11 |
<link rel="stylesheet" type="text/css" href="${contextPath}/docroot/samples/samples.css"/>
|
| 12 |
[@cms.links /]
|
| 13 |
</head>
|
| 14 |
|
| 15 |
<body>
|
| 16 |
|
| 17 |
[#-- Page Dialog --]
|
| 18 |
[@cms.mainBar dialog="mainProperties" /]
|
| 19 |
|
| 20 |
<div id="header">
|
| 21 |
<h1>Magnolia Samples</h1>
|
| 22 |
</div>
|
| 23 |
|
| 24 |
[#-- Simple Navigation Tag --]
|
| 25 |
<div id="navigation">[@cmsu.simpleNavigation /]</div>
|
| 26 |
|
| 27 |
<div id="main">
|
| 28 |
|
| 29 |
[#-- Variable titleSize is set in the template definition, if empty sets it to 1 --]
|
| 30 |
<h${def.titleSize!"1"}>${content.title!content.@name}</h${def.titleSize!"1"}><br />
|
| 31 |
|
| 32 |
<p>${content.text!""}</p><br />
|
| 33 |
|
| 34 |
[#-- Variable dummy is set in the template definition parameters content node --]
|
| 35 |
<p>dummy: ${def.dummy!""}</p><br />
|
| 36 |
|
| 37 |
<div>
|
| 38 |
<h3>Display Sources</h3><br />
|
| 39 |
<ul>
|
| 40 |
<li><a href="${ctx.contextPath}/.sources/templates/main.ftl">Main template</a></li>
|
| 41 |
</ul>
|
| 42 |
</div><br />
|
| 43 |
|
| 44 |
[@cms.contentNodeIterator contentNodeCollectionName="main"]
|
| 45 |
[@cms.includeTemplate /]
|
| 46 |
[/@cms.contentNodeIterator]
|
| 47 |
|
| 48 |
[@cms.newBar contentNodeCollectionName="main" paragraph="samplesHowToFTL, samplesHowToJSP, samplesControlsShowRoom, samplesSearchResult" /]
|
| 49 |
</div>
|
| 50 |
|
| 51 |
<div id="footer">
|
| 52 |
<p>This page was last edited by <span class="author">${content.metaData.authorId}</span>
|
| 53 |
on <span class="modificationdate">${content.metaData.modificationDate}</span>
|
| 54 |
</p>
|
| 55 |
</div>
|
| 56 |
</body>
|
| 57 |
</html>
|