My favorites | Sign in
Project Logo
                
Search
for
Updated Mar 07, 2009 by erdmann.tester
ResourcesFile  
The shipped resource handler for file based resources

File Resource

Configuration Parameters

Default values in brackets

template_dir (string "templates/")

Defines the directory where your templates reside.

suffix (string ".tpl")

Defines the suffix for your template files. Useful if you want to control which editor is used for your templates via file extensions.

language (string "en")

Useful if you have a multilingual system. Usually you have the same template per language and just insert different translations for strings. But if you have a special case where a template should differ in a specific language, this resource handler automatically looks for "template_descriptor.language.suffix" and takes this template if it exists.

Config Example

$serpent->addPluginConfig('resource', 'file', array(
	'template_dir' => 'templates/',
	'suffix' => '.tpl',
	'language' => 'de'
));

Sign in to add a comment
Hosted by Google Code