Skip to content
XML based Grid configuration
PHP
Branch: master
Clone or download
Schrank Merge pull request #22 from svaxy/dropdown-eav-default-method
Add a default method for fetching dropdown eav attribute options
Latest commit d3e03fd May 23, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/app Add a default method for fetching dropdown eav attribute options May 16, 2016
LICENSE.md Change namespace Oct 26, 2013
README.md Added example to the README May 23, 2016
composer.json
modman Change namespace Oct 26, 2013

README.md

GridControl

Members

Ralf, Ronald, Marten, Bastian

Features

  • add columns
  • remove columns
  • change columns
  • move columns
  • add new attributes
  • join new attributes

Todo

  • role based grid layout
  • configuration GUI (?)

XML Syntax

gridcontrol.xml in module etc folder:

<?xml version="1.0"?>
<gridcontrol>
    <grids>
        <product.grid>
            <entity_id>
                <remove/>
            </entity_id>

            <sku>
                <after>name</after>
            </sku>
        </product.grid>

        <gridname>
            <column>
                <remove/>

                <after>columnname</after>

                <add>
                    <header>Column Title</header>
                    <type>text</type>
                    <index>qty</index>
                    <!--<joinAttribute>status|catalog_product/status|entity_id||inner</joinAttribute>-->
                    <joinField>qty|cataloginventory/stock_item|qty|product_id=entity_id|{{table}}.stock_id=1|left</joinField>
                </add>
            </column>

            <manufacturer>
                <add>
                    <header>Manufacturer</header>
                    <type>options</type>
                    <index>manufacturer</index>
                    <options>firegento_gridcontrol/utility::getDropdownAttributeLabelOptionArray(manufacturer)</options>
                </add>
            </manufacturer>

            <selecttest>
                <add>
                    <header>Status Column</header>
                    <type>options</type>
                    <options>
                        <option_a>
                            <key>1</key>
                            <value>Active</value>
                        </option_a>

                        <option_b>
                            <key>2</key>
                            <value>Inactive</value>
                        </option_b>
                    </options>
                    <index>status</index>
                </add>
                <after>column</after>
            </selecttest>
        </gridname>
    </grids>
</gridcontrol>
You can’t perform that action at this time.