To answer my own question:
[{assign var="config" value=$oViewConf->getConfig()}]
[{if $config->getConfigParam('blEnableTwitter')}]
...
[{/if}]
works.
Thanks Alexander for the tip!
Vikram
-------- Original Message --------
Subject: Re: [oxid-dev-general] Fast help needed on blocks in eShop 4.6.0
Date: Thu, 12 Jan 2012 19:53:12 +0530
From: Vikram Vaswani <[email protected]>
To: [email protected]
References: <[email protected]>
<[email protected]>
Hi Alexander
Thanks for the quick reply but...
- Shop config vars can be loaded using oxConfig::getShopConfVar function
I tried wrapping my template code in this:
[{if oxConfig::getShopConfVar('blEnableTwitter') }]
...
[{/if}]
However this produces an error
Smarty error: [in layout/sidebar.tpl line 52]: syntax error:
unidentified token '::getShopConfVar('blEnableTwitter')'
What am I doing wrong?
Vikram
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general