firegento-magesetup icon indicating copy to clipboard operation
firegento-magesetup copied to clipboard

Add imprint config to allowed varaiables

Open sreichel opened this issue 6 years ago • 4 comments

If you want to use imprint config setting in CMS pages/blocks, you have to add permissions for all variables manually ...

{{config path="general/imprint/shop_name"}}

Should we whitelist these variables via setup?

sreichel avatar Jun 17 '18 15:06 sreichel

Sounds like a good idea to me

Schrank avatar Nov 05 '18 22:11 Schrank

what does "you have to add permissions for all variables manually" mean? I have a problem using the variables from the imprint in blocks.

{{config path='general/imprint/web'}}

The field is empty. Where do I have to set which permission? I have a M1 1.9.4.x (I tested different 1.9.4). The result is always the same. I copy the content of src into the shop, clear cache, log out, log in, MageSetup -> Variables of imprint can not be output. Is this a bug in 1.9.4.x? The installation is new and empty, only Firegento MageSetup

difficultchild avatar Jul 17 '19 19:07 difficultchild

$var = Mage::getModel('admin/variable');
$var->setData(['variable_name' => 'general/imprint/web', 'is_allowed' => 1]);
$var->save();

Schrank avatar Jul 17 '19 21:07 Schrank

Or if you want to do it manually:

System > Permissions > Variable > Create new

Name: general/imprint/web Is Allowed: yes

Schrank avatar Jul 17 '19 21:07 Schrank