This Subversion repository has been migrated to Git.

While no updates (commits) will be on this project's Subversion repository, it will remain available on Subversion, in read-only mode for the foreseable future

For up-to-date sources, see the corresponding Git repository at http://git.magnolia-cms.com. See below for details.

Please see details and status on the following pages:

/[main]/community/magnolia/branches/magnolia-4.4/magnolia-module-samples/src/main/resources/samples/templates/main.ftl

Contents of /community/magnolia/branches/magnolia-4.4/magnolia-module-samples/src/main/resources/samples/templates/main.ftl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 37490 - (show annotations) (download)
Tue Sep 28 11:05:50 2010 UTC (2 years, 8 months ago) by fgrilli
File size: 1990 byte(s)
branching for 4.4
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>

Please contact the developer's list in case of issues or questions.

ViewVC Help
Powered by ViewVC 1.1.13