Developer Documentation
Getting started
Overview
Semantic elements
Deployment
Alahup! Elements > text (t)
tag : t
parents : div, li, img
children : text chunks, b, u, i, link
The text element is very simple.
It will be rendered most of the time as a paragraph, or a title.
Example
elements/sets/default/t.tpl :
{if $this.custom.type=="p"}
<p>{render content=$this}</p>
{elseif $this.custom.type=="h1"}
<h1>{render content=$this}</h1>
{elseif $this.custom.type=="h2"}
<h2>{render content=$this}</h2>
{elseif $this.custom.type=="h3"}
<h3>{render content=$this}</h3>
{/if}
<p>{render content=$this}</p>
{elseif $this.custom.type=="h1"}
<h1>{render content=$this}</h1>
{elseif $this.custom.type=="h2"}
<h2>{render content=$this}</h2>
{elseif $this.custom.type=="h3"}
<h3>{render content=$this}</h3>
{/if}