Download JS Extension from here:
http://jscolor.com/
Sometimes you may want to add color picker in the admin configuration page of your Magento module or extension. You may think this as a big task but believe me this is as simple as anything. Few lines of XML code will do it for you. Here are the exact steps to do this.
1. In adminhtml/default/default/layout directory, create the layout XML file for your module. Lets name it as picker.xml. Write following content in picker.xml:
<?xml version="1.0"?> <layout version="0.1.1"> <adminhtml_system_config_edit> <reference name="head"> <action method="addJs"><file>jscolor/jscolor.js</file></action> </reference> </adminhtml_system_config_edit> </layout>
2. Declare the layout file in your module's config.xml as:
<config> ... <adminhtml> <layout> <updates> <basket> <file>picker.xml</file> </basket> </updates> </layout> </adminhtml> ... </config>
3. In your module's system.xml, add the color picker field as:
<config> ... <sections> <myconfig module="picker" translate="label"> ... <groups> <my_group translate="label"> ... <my_color> <label>Background Color</label> <frontend_type>text</frontend_type> <validate>color</validate> <!-- This is important --> <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> <comment>Specify the background color.</comment> </my_color> <my_group> </groups> <myconfig> </sections> ... </config>
相关推荐
NULL 博文链接:https://justcoding.iteye.com/blog/1886183
Protect Magento instance admin from unexpected intrusions Set up newsletter and transactional emails so that communication from your website corresponds to the website’s look and feel Make the store ...
NULL 博文链接:https://justcoding.iteye.com/blog/2100394
Ability to place any block in any position by easily changing CMS page layout Unlimited number of blocks inside each position Unlimited number of content items inside each block Block items can ...
Magento全页缓存插件,适用于1.6-1.8社区版
In Magento 2, the Full Page Cache (FPC) can be handled by Varnish to give your store a performance boost. There are also external services that you can use as a cache. Chapter 4, Creating Catalogs ...
magento数据结构分析 magento数据字典
magik shoes magento 模板, magento 1.7 模板
magento的SMTP插件magento的SMTP插件magento的SMTP插件
深入理解Magento 由精东博客下载下来制作成pdf
Magento插件开发手册 Magento Extension Developers Guide
In Magento 2, the Full Page Cache (FPC) can be handled by Varnish to give your store a performance boost. There are also external services that you can use as a cache. Chapter 4, Creating Catalogs ...
Athlete Magento主题,兼容Magento 1.9.x, 1.8.x, 1.7.x ,特点:完全自适应(响应式布局),自定义子主题,无限颜色,完全自定义,一键安装演示,小工具化横幅系统,颜色选择,MEGA菜单,多商店支持,自定义产品...
NULL 博文链接:https://hudeyong926.iteye.com/blog/1728074
magento2 developers cookbook, magento 开发手册,magento教程
Magento Magento商城 Magento目录结构
主要包括的内容有:magento的常用设置、Magento模板制作教程、Magento商城_目录结构说明、Magento中文教程实用文档、常用的xml的文件的作用以及自定义模块的应用
快速在服务器上复制为另一个站,版本用的是magento,php语言