/
file_index_tpl.html
41 lines (32 loc) · 1.15 KB
/
file_index_tpl.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
layout: default
navPage: docs
heading: index.tpl
breadcrumbs:
- Module Development,/module_development/
- Form Tools 2,/module_development/index_ft2/
- Anatomy of a Module,/module_development/anatomy/
- index.tpl
prev: index.php,/module_development/file_index/
next: lang/[lang file].php,/module_development/file_lang/
categories: module_development
---
{% include open_section.html nav='nav_module_development.html' selected='file_index_tpl' nav_width=4 %}
<p>
You're required to include at least <b>one</b> Smarty template to render your index.php page. This template
can be located within the main module folder or any subfolder within it and named whatever you want. We
suggest <b>index.tpl</b> to keep it simple.
</p>
<p>
All HTML within Form Tools is generated through the Smarty template language.
</p>
<p>
Here's the index.tpl file from the Hello World! module. All it does it output a localized "hello world!"
string.
</p>
{% codemirror smarty %}
{include file='modules_header.tpl'}
<div class="title">{$L.phrase_hello_world|upper}</div>
{include file='modules_footer.tpl'}
{% endcodemirror %}
{% include close_section.html %}