firegento / firegento-magesetup

MageSetup
GNU General Public License v3.0
120 stars 81 forks source link

Add imprint config to allowed varaiables #343

Open sreichel opened 6 years ago

sreichel commented 6 years ago

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?

Schrank commented 6 years ago

Sounds like a good idea to me

difficultchild commented 5 years ago

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

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

Or if you want to do it manually:

System > Permissions > Variable > Create new

Name: general/imprint/web Is Allowed: yes