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
在magento的系统配置中显示图像?_Magento_Configuration_Magento 1.7_System.xml - Fatal编程技术网

在magento的系统配置中显示图像?

在magento的系统配置中显示图像?,magento,configuration,magento-1.7,system.xml,Magento,Configuration,Magento 1.7,System.xml,我想在系统配置中显示单选按钮值的图像 我还想在前端显示所选图像 帮我做这个 谢谢如果我理解正确,您需要在system.xml中选择后端图像: <config> <sections> <section_name> <groups> <group_name> <fields> &l

我想在系统配置中显示单选按钮值的图像

我还想在前端显示所选图像

帮我做这个


谢谢

如果我理解正确,您需要在system.xml中选择后端图像:

<config>
   <sections>          
      <section_name>
         <groups>
            <group_name>
                <fields>
                   <logoimage translate="label comment">
                       <label>Logo</label>
                       <frontend_type>image</frontend_type>
                       <backend_model>adminhtml/system_config_backend_image</backend_model>
                       <upload_dir config="system/filesystem/media" scope_info="1">theme</upload_dir>
                       <base_url type="media" scope_info="1">theme</base_url>
                       <sort_order>1</sort_order>
                       <show_in_default>1</show_in_default>
                       <show_in_website>1</show_in_website>
                       <show_in_store>1</show_in_store>
                   </logoimage>
                 </fields>
             </group_name>
         </groups>
     </section_name>
   </sections>
</config>

标志
形象
adminhtml/system\u config\u backend\u image
主题
主题
1.
1.
1.
1.
然后粘贴到前端:

<?php echo Mage::getBaseUrl('media') . Mage::getStoreConfig('section_name/group_name/logoimage'); ?>


您能否更具体一点,并提供一个您尝试过的示例?谢谢我不想从系统中获取图像(上传选项)。需要从我的系统中显示图像。