Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
CMS块中带换行符的Magento配置变量_Magento_Configuration_Static Block - Fatal编程技术网

CMS块中带换行符的Magento配置变量

CMS块中带换行符的Magento配置变量,magento,configuration,static-block,Magento,Configuration,Static Block,我想在Magento网站的CMS块中使用商店地址,但问题是换行符的格式不符合以下要求: {{config path="general/store_information/address"}} <pre>{{config path="general/store_information/address"}}</pre> 之前在我们使用的模板中: nl2br(Mage::getStoreConfig('general/store_information/address'))

我想在Magento网站的CMS块中使用商店地址,但问题是换行符的格式不符合以下要求:

{{config path="general/store_information/address"}}
<pre>{{config path="general/store_information/address"}}</pre>
之前在我们使用的模板中:

nl2br(Mage::getStoreConfig('general/store_information/address'));
上面的工作很好,但我们希望摆脱模板限制


在CMS块中拉出配置变量时,是否有可能将换行符/格式添加到配置变量中。在配置中,地址是用换行符输入的。

这似乎对我有用:

{{config path=“general/store\u information/address”}

之后,只需根据需要修改样式。

这似乎适合我:

{{config path=“general/store\u information/address”}

之后,只需根据需要修改样式。

我建议将其添加到CSS文件中(可能在
地址下):
pre{font-family:inherit;font-style:normal;margin-bottom:5px;}
我建议将其添加到CSS文件中(可能在
地址下):
pre{字体系列:继承;字体样式:普通;页边距底部:5px;}