aijko/aijko_widgetimagechooser

小部件图像选择器

安装次数: 7,437

依赖项: 0

建议者: 0

安全性: 0

星标: 58

关注者: 12

分支: 28

公开问题: 5

类型:magento-module

0.4.0 2016-11-10 09:17 UTC

This package is not auto-updated.

Last update: 2024-09-20 18:28:50 UTC


README

分支

  • master => 此扩展的稳定版本(与CE 1.5.1.0、1.6.2.0、1.7.0.2和EE 1.12.0.2进行了测试)
  • develop => 开发版本

关于此扩展

Aijko_WidgetImageChooser 在小部件声明中引入了一个新的字段类型 widgetimagechooser/chooser,以便在组件中使用标准的 Magento 图像选择器。

安装

此扩展作为 modman 包提供,因此只需将其克隆到您的项目中,或通过 MagentoConnect 在此处安装 http://www.magentocommerce.com/magento-connect/widget-image-chooser-7129.html

如何使用

在声明组件时,只需使用 widgetimagechooser/chooser 作为类型。

<image>
    <label>Image</label>
    <type>widgetimagechooser/chooser</type>
</image>

示例 widget.xml

<?xml version="1.0"?>
<widgets>
    <widget_sample type="custom/widget" translate="label description" module="your_custom">
        <name>Test Widget</name>
        <parameters>
            <title>
                <label>Title</label>
                <required>1</required>
                <visible>1</visible>
                <type>text</type>
                <sort_order>10</sort_order>
            </title>
            <text>
                <label>Text</label>
                <required>1</required>
                <visible>1</visible>
                <type>textarea</type>
                <sort_order>20</sort_order>
            </text>
            <image>
                <label>Image</label>
                <required>1</required>
                <visible>1</visible>
                <type>widgetimagechooser/chooser</type>
                <sort_order>30</sort_order>
            </image>
        </parameters>
    </widget_sample>
</widgets>

请在此查看一个工作示例组件 https://github.com/aijko/aijko-widgetimagechooserexample