Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add imprint config to allowed varaiables #343

Open
sreichel opened this issue Jun 17, 2018 · 4 comments
Open

Add imprint config to allowed varaiables #343

sreichel opened this issue Jun 17, 2018 · 4 comments

Comments

@sreichel
Copy link
Contributor

sreichel commented Jun 17, 2018

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
Copy link
Member

Schrank commented Nov 5, 2018

Sounds like a good idea to me

@difficultchild
Copy link

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
Copy link
Member

Schrank commented Jul 17, 2019

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

@Schrank
Copy link
Member

Schrank commented Jul 17, 2019

Or if you want to do it manually:

System > Permissions > Variable > Create new

Name: general/imprint/web
Is Allowed: yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants