Example
<p>Content templates are typically stored in your extension template folder:</p>
<p>&nbsp;</p>
<p style="padding-left: 20px;"><strong>inc/template/&lt;extensionKey&gt;/</strong></p>
<p>&nbsp;</p>
<p>Examples:</p>
<p style="padding-left: 20px;">&nbsp;</p>
<p style="padding-left: 20px;">
inc/templates/th_myTheme/content_default.tpl</p>
<p style="padding-left: 20px;">
inc/templates/th_myTheme/content_box.tpl</p>
<p style="padding-left: 20px;">
inc/templates/th_myTheme/content_default_underline.tpl</p>
<p>&nbsp;</p>
<p>Good practice is to start the filename with <strong>content_</strong>, so that other can detect content files with the first sight.</p>
<p>&nbsp;</p>
<p>You have access to all global <a href="150">template variables</a> and specially to the <a href="150">$slot</a> and the $content variables.</p>
<p>&nbsp;</p>
<p><strong>$content</strong> is a array with following keys:</p>
<ul>
<li><strong>title</strong><br />Contains the defined title - can be empty.</li>
<li><strong>content</strong><br />Contains the type based content.</li>
<li><strong>type</strong><br />Contains the type: text, picture, html, plugin, php, template, navigation</li>
<li><strong>template</strong><br />Contains the choosen template path</li>
</ul>
<div class="contentElement {$content.type}">
    {if $content.title}
        <h2>{$content.title}</h2>
    {/if}
    <div class="contentElementContent">
        {$content.content}
    </div>
</div>

 

How to define content templates

You can define your content templates in the extension editor.