The {configuration} TAG enables you to read Configuration entrys, that are accessable in the Administration at System → Configurations.
→ Since BIGACE 2.2.
The name of the package to read the config entry from.
The name of the configuration entry to read.
This name of the template variable, the config value will be assigned to.
This value to return, if the requested configuration entry could not be found.
This name of the configuration package to cache (use it, if you read more than 3 config entrys from the same package).
Caching a Config package for multiple access:
{configuration cache="system"}
<html>
<head>
<title>Using the {configuration} TAG</title>
</head>
<body>
<p>Display extended footer: {configuration package="system" key="footer.type.extended"}</p>
<p>Log Level: {configuration package="system" key="logger.loglevel"}</p>
<p>Using Smarty: {configuration package="system" key="use.smarty" default=true}</p>
</body>
</html>
Assigning a config entry for later usage:
<html> <head> <title>Using the {configuration} TAG</title> </head> <body> {configuration package="custom" key="tree.id" default="-1" assign="rootID"} <p>The below tree will be loaded from ID: {$rootID}</p> {load_item_childs id=$rootID assign="myTree"} ... do further stuff with the tree ... </body> </html>