Block Functions (plugins)
Smarty 'Block' functions are functions which enclose a template block and operate on the contents of this block. In Exponent, we use Block functions to encapsulate things like css code, the permissions section, forms, scripts, etc...
{form action=update} {control type=hidden name=id value=$record->id} {control type=text name=title label="Title" value=$record->title} {control type=textarea cols="80" rows=20 name=body label="Code Snippet" value=$record->body} {control type=buttongroup submit="Save Text" cancel="Cancel"} {/form}
Loading Help