Difference between revisions of "Smarty"
From TMM Wiki
Jump to navigationJump to searchTMMStephenY (talk | contribs) m |
|||
Line 31: | Line 31: | ||
[[Category:Also NATS4 Article]] | [[Category:Also NATS4 Article]] | ||
+ | [[Category:NATS4 Skins and Templates]] |
Revision as of 14:38, 18 May 2011
NATS 3
|
---|
Smarty is a templating engine used by several Too Much Media products.
PHP Parsing
The Smarty templates in NATS are not parsed by PHP for security reasons. In NATS3, you can enable linkcodes by changing links from,
?<?=$_SERVER['QUERY_STRING']?>
to,
?nats={$nats_code}
In NATS4, you can use the nats_encode or nats_list_linkcodes functions.
Inline JavaScript & CSS
Place inline JavaScript or CSS between Smarty's {literal} and {/literal} tags.
See Also
- Smarty Homepage -- The Smarty homepage and function reference
- Smarty print array list array values in smarty templates