The "Website Settings" gives you the possibility to configure website-specific settings, which you can access in every controller and view.
Examples
- ReCAPTCHA public & private key
- Locale settings
- Google Maps API key
- Defaults
- ....
Access the Settings
You can access the settings in every controller and view with $this->config. This variable contains a Zend_Config object containing your settings.
If you're not in a view or controller you can use Pimcore_Tool_Frontend::getWebsiteConfig(); to retrieve the configuration.
Example configuration

Example in a view:
<script type="text/javascript" src="http://www.google.com/jsapi?autoload=%7B%22modules%22%3A%5B%7B%22name%22%3A%22maps%22%2C%22version%22%3A%222%22%7D%5D%7D&key=<?= $this->config->googleMapsKey ?>"></script>
Example in a controller:
public function testAction () { $recaptchaKeyPublic = $this->config->recaptchaPublic; }
Comments (1)
Jul 11, 2011
Florian H. says:
There is a bug in this settings function: If you want to write an ampersand (&am...There is a bug in this settings function: If you want to write an ampersand (& sign) as value, you get an error when saving. Writing the html entity (&) instead, will save, but next time you go to the settings page again and change any other value (whatever) and save, you get that error again because the '&' has turned to '&' automatically...
/edit: finally found a way to patch it:
Update: Fixed in last pimcore version!