1.< label/> and < comment/>

<label>this is label</label><comment>这是评论</comment>

2.< show_in_default/>, < show_in_website/>, < show_in_store/>

in the default view, the website view, or the store view.<show_in_default>1</show_in_default><show_in_website>1</show_in_website><show_in_store>1</show_in_store>

3.< sort_order/>

<sort_order>10</sort_order>数值越高,排序越低

4.< frontend_type/>

<frontend_type>multiselect</frontend_type>决定字段的类型


5.< frontend_class/>

<frontend_class>free-method</frontend_class>用来改变我们字段的 class 名


6. < validate/>


<validate>validate-email</validate>不能同时加 <frontend_class/>
添加验证类型



7.< can_be_empty/>

<can_be_empty>1</can_be_empty>为ture 的话,将出现隐藏字段


8.< depends/>

依赖于其他字段的值,然后是否显示<frontend_type>select</frontend_type><source_model>adminhtml/system_config_source_yesno</source_model><depends><specificcountry>1</specificcountry></depends>

9.< source_model/>

指定了 model 类,
<source_model>module/modelname::methodName</source_model>
默认为  toOptionArray() 方法。

10.< frontend_model/>

By default, Magento Form Elements are rendered with the Block classMage_Adminhtml_Block_System_Config_Form_Field<frontend_model>adminhtml/system_config_form_field_notification</frontend_model>specifies that a field renderer of adminhtml/system_config_form_field_notification should be used. This translates into the following class


11.< backend_model/>

表单提交,默认的处理类为:
Mage_Core_Model_Config_Data< backend_model/> 允许你指定不同的backend model<backend_model>adminhtml/system_config_backend_shipping_tablerate</backend_model>
class Mage_Adminhtml_Model_System_Config_Backend_Shipping_Tablerate extends Mage_Core_Model_Config_Data
{public function _afterSave(){Mage::getResourceModel('shipping/carrier_tablerate')->uploadAndImport($this);}
}
Here the core team is hooking into the _afterSave method (which is called after a model is saved) to update the shipping/carrier_tablerate Model with information from the just uploaded file.


12.< upload_dir/> and < base_url/>

Both these tags are used with System Configuration fields that use the <frontend_type>image</frontend_type> field with a <backend_model>adminhtml/system_config_backend_image</backend_model> backend model. These determine both1.Where the image file is uploaded
2.The base URI path used when rendering an <img> tag

http://alanstorm.com/magento_system_configuration_in_depth_tutorial

36. In Depth Magento System Configuration相关推荐

  1. Magento 获取系统设置 How to get data from Magento System Configuration

    I just wandering on how I can get the configuration data for my custom module. The configuration can ...

  2. 【Linux导论】通过图形接口配置系统(System Configuration from the Graphical Interface)

    原文 LFS101x.2 Introduction to Linux (Linux Foundation) Chapter 05: System Configuration from the Grap ...

  3. ”System.Configuration.ConfigurationSettings.AppSettings“ 已过时----解决方案

    在写数据库链接时出现了上图的状况,然后编译器提示出了以下错误: 然后参考了大佬的博客后了解到了以下解决方案: 在VS右边的"解决方案"中项目名,然后右键 "添加" ...

  4. System.Configuration.ConfigurationSettings.GetConfig(string)”已过时 问题的解决方法

    在VS 2005中,经常会使用到ConfigurationSettings类来读取应用程序配置文件的信息,以获取数据库连接的字符串,但是,经常会出现如下的错误: 警告"System.Conf ...

  5. System.Configuration命名空间下的关键类

    1.ConfigurationManager和 WebConfigurationManager类:      使用 ConfigurationManager 类,可以访问计算机和应用程序的配置信息.C ...

  6. magento模板 -- 如何安装magento模板

    在magento下面安装模板首先要了解magento的模板结构: 每个magento模板都包含如下的类似结构: --app/design/frontend/default/[模板名称] ------- ...

  7. 【转】magento性能优化的教程(非常详细)

    Magento是一套专业开源的电子商务系统,Magento设计得非常灵活,具有模块化架构体系和丰富的功能但有朋友会发现此模块用到了会发现非常的缓慢了,那么下面我们来看关于magento性能优化的例子. ...

  8. Magento: 自定义用户登录导向页面 Redirect Customer to Previous Page After Login

    Configuration Settings – Login to admin panel – Go to System -> Configuration -> CUSTOMERS -&g ...

  9. Magento: 代替flash上传 How to disable Flash uploader in Magento (product images and

    1. 替换产品页flash上传按钮 - 使用 Dull_Uploader How to disable Flash uploader in Magento 1.4.x - 1.9.x So what ...

  10. Magento 创建唯一优惠券 Create unique coupon code in Magento

    Toni from ICG wrote a post how to create simple A/B split testing for offline promotions for online ...

最新文章

  1. Oracle 在Sqlplus 执行sql脚本文件。
  2. python二维数组去重复_php二维数组去重,array_unique出除重复数据
  3. 解决org.apache.hadoop.io.nativeio.NativeIOException: 当文件已存在时,无法创建该文件。
  4. 线程池拒绝策略 开发中常用什么策略_面试官:说说你知道多少种线程池拒绝策略...
  5. 华为否认降低手机产量传闻:全球生产水平正常 无明显调整
  6. php charat,charAt(i) 函数
  7. Dialog对话框全解
  8. [转载] epoll详解
  9. javascript中实现动画是settimeout(递归)还是用setinterval好?
  10. 3d打印机c语言程序下载,C语言下载
  11. c语言编程吉他和弦,学吉他和弦怎么弹啊?就C大调C,Dm,Em,F,G,Am,Bdim.1,2,3,4,5,6,7级和弦举个简单的例帮帮我...
  12. Windows 10/11【家庭版】设置本地账户密码永不过期的方法
  13. SSM车辆维修管理系统毕业设计总结篇
  14. 一个简单的跑酷引擎-------bibibibi
  15. SOLIDWORKS如何建立基准面
  16. java 文字转换成语音 代码_java文字转语音播报功能的实现方法
  17. BERT原理和结构详解
  18. 【项目精选】银行柜员业务绩效考核系统的设计与实现
  19. show processlist 解释
  20. Github神项目推荐:深度神经网络修复打码H漫

热门文章

  1. 躁动不安的年代,你需要读几本好书(python爬虫及数据分析)
  2. R语言决策树:NBA球员如何拿到大合同
  3. linux系统进去dev sdb6,linux书上划的题的答案
  4. 2018-2019-2 20165221 【网络对抗技术】-- Exp6 信息搜集与漏洞扫描
  5. Spring IOC的三种主要注入方式?
  6. JAVA生成(可执行)Jar包的全面详解说明 [打包][SpringBoot][Eclipse][IDEA][Maven][Gradle][分离][可执行]...
  7. 解决jenkins插件列表为空的问题
  8. UVa 10970 大块巧克力
  9. java内存模型及GC原理
  10. php页面打开响应时间