Difference between revisions of "Creating Text templates"
From OpenKM Documentation
Line 1: | Line 1: | ||
+ | For this kind of template will create an HTML one. This is the template source code: | ||
+ | |||
+ | <source lang="html"> | ||
+ | <html> | ||
+ | <head> | ||
+ | <title>Sample template form</title> | ||
+ | </head> | ||
+ | <body> | ||
+ | <h1>Sample template form</h1> | ||
+ | <table> | ||
+ | <tr> | ||
+ | <td><b>Name</b></td> | ||
+ | <td>${okp_form_name!}</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td><b>Bird Date</b></td> | ||
+ | <td>${okp_form_bird_date!}</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td><b>Language</b></td> | ||
+ | <td>${okp_form_language!}</td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | </body> | ||
+ | </html> | ||
+ | </source> | ||
+ | |||
+ | The tags ${okp_form_name!}, ${okp_form_bird_date!} and ${okp_form_language!} will be replaced by the user input values. | ||
+ | |||
{{Warning|This section is under construction.}} | {{Warning|This section is under construction.}} | ||
[[Category: Installation Guide]] | [[Category: Installation Guide]] | ||
[[Category: OKM Network]] | [[Category: OKM Network]] |
Revision as of 10:08, 5 April 2011
For this kind of template will create an HTML one. This is the template source code:
<html>
<head>
<title>Sample template form</title>
</head>
<body>
<h1>Sample template form</h1>
<table>
<tr>
<td><b>Name</b></td>
<td>${okp_form_name!}</td>
</tr>
<tr>
<td><b>Bird Date</b></td>
<td>${okp_form_bird_date!}</td>
</tr>
<tr>
<td><b>Language</b></td>
<td>${okp_form_language!}</td>
</tr>
</table>
</body>
</html>
The tags ${okp_form_name!}, ${okp_form_bird_date!} and ${okp_form_language!} will be replaced by the user input values.
This section is under construction. |