Skip to content

UMC config file

Marius edited this page Aug 25, 2014 · 1 revision

UMC config file

Based on the details in the Sample section UMC will generate the following xml configuration file.
var/modulecreator/package/Demo_News.xml.
If case you want to recreate the extension you only need to copy this file in the new magento instance and the UMC then you can just edit it and save it again.

The xml actually does not look as beautiful as the one below, but I added the indentation to make it readable.

<?xml version="1.0" encoding="UTF-8"?>
<module>
    <namespace>
        <![CDATA[Demo]]>
    </namespace>
    <module_name>
        <![CDATA[News]]>
    </module_name>
    <install>
        <![CDATA[0]]>
    </install>
    <codepool>
        <![CDATA[local]]>
    </codepool>
    <version>
        <![CDATA[1.0.0]]>
    </version>
    <license>
        <![CDATA[{{Namespace}}_{{Module}} extension

NOTICE OF LICENSE

This source file is subject to the MIT License
that is bundled with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://opensource.org/licenses/mit-license.php

@category       {{Namespace}}
@package        {{Namespace}}_{{Module}}
@copyright      Copyright (c) {{Y}}
@license        http://opensource.org/licenses/mit-license.php MIT License
]]>
    </license>
    <menu_text>
        <![CDATA[News]]>
    </menu_text>
    <menu_parent>
        <![CDATA[cms]]>
    </menu_parent>
    <sort_order>
        <![CDATA[12]]>
    </sort_order>
    <front_key>
        <![CDATA[news]]>
    </front_key>
    <system_tab>
        <![CDATA[News]]>
    </system_tab>
    <system_tab_position>
        <![CDATA[2000]]>
    </system_tab_position>
    <entities>
        <entity>
            <label_singular>
                <![CDATA[Author]]>
            </label_singular>
            <label_plural>
                <![CDATA[Authors]]>
            </label_plural>
            <name_singular>
                <![CDATA[author]]>
            </name_singular>
            <name_plural>
                <![CDATA[authors]]>
            </name_plural>
            <is_tree>
                <![CDATA[0]]>
            </is_tree>
            <add_created_to_grid>
                <![CDATA[1]]>
            </add_created_to_grid>
            <add_updated_to_grid>
                <![CDATA[1]]>
            </add_updated_to_grid>
            <type>
                <![CDATA[flat]]>
            </type>
            <store>
                <![CDATA[0]]>
            </store>
            <create_frontend>
                <![CDATA[1]]>
            </create_frontend>
            <create_list>
                <![CDATA[1]]>
            </create_list>
            <list_menu>
                <![CDATA[3]]>
            </list_menu>
            <list_template>
                <![CDATA[two_columns_left]]>
            </list_template>
            <create_view>
                <![CDATA[1]]>
            </create_view>
            <view_template>
                <![CDATA[two_columns_left]]>
            </view_template>
            <add_seo>
                <![CDATA[1]]>
            </add_seo>
            <url_rewrite>
                <![CDATA[1]]>
            </url_rewrite>
            <url_prefix>
                <![CDATA[author]]>
            </url_prefix>
            <url_suffix>
                <![CDATA[html]]>
            </url_suffix>
            <rss>
                <![CDATA[1]]>
            </rss>
            <widget>
                <![CDATA[1]]>
            </widget>
            <link_product>
                <![CDATA[0]]>
            </link_product>
            <show_on_product>
                <![CDATA[]]>
            </show_on_product>
            <show_products>
                <![CDATA[]]>
            </show_products>
            <product_attribute>
                <![CDATA[0]]>
            </product_attribute>
            <product_attribute_code>
                <![CDATA[]]>
            </product_attribute_code>
            <product_attribute_scope>
                <![CDATA[]]>
            </product_attribute_scope>
            <link_category>
                <![CDATA[0]]>
            </link_category>
            <show_on_category>
                <![CDATA[]]>
            </show_on_category>
            <show_category>
                <![CDATA[]]>
            </show_category>
            <category_attribute>
                <![CDATA[0]]>
            </category_attribute>
            <category_attribute_code>
                <![CDATA[]]>
            </category_attribute_code>
            <category_attribute_scope>
                <![CDATA[]]>
            </category_attribute_scope>
            <allow_comment>
                <![CDATA[0]]>
            </allow_comment>
            <manage_comment>
                <![CDATA[]]>
            </manage_comment>
            <search>
                <![CDATA[1]]>
            </search>
            <api>
                <![CDATA[1]]>
            </api>
            <rest>
                <![CDATA[1]]>
            </rest>
            <product_attribute_group>
                <![CDATA[]]>
            </product_attribute_group>
            <category_attribute_group>
                <![CDATA[]]>
            </category_attribute_group>
            <attributes>
                <attribute>
                    <code>
                        <![CDATA[name]]>
                    </code>
                    <label>
                        <![CDATA[Name]]>
                    </label>
                    <type>
                        <![CDATA[text]]>
                    </type>
                    <note>
                        <![CDATA[]]>
                    </note>
                    <position>
                        <![CDATA[10]]>
                    </position>
                    <required>
                        <![CDATA[1]]>
                    </required>
                    <admin_grid>
                        <![CDATA[1]]>
                    </admin_grid>
                    <frontend>
                        <![CDATA[1]]>
                    </frontend>
                    <widget>
                        <![CDATA[1]]>
                    </widget>
                    <rss>
                        <![CDATA[1]]>
                    </rss>
                    <default_value>
                        <![CDATA[]]>
                    </default_value>
                    <is_name>
                        <![CDATA[1]]>
                    </is_name>
                    <index>
                        <![CDATA[0]]>
                    </index>
                    <user_defined>
                        <![CDATA[]]>
                    </user_defined>
                </attribute>
                <attribute>
                    <code>
                        <![CDATA[description]]>
                    </code>
                    <label>
                        <![CDATA[Description]]>
                    </label>
                    <type>
                        <![CDATA[textarea]]>
                    </type>
                    <note>
                        <![CDATA[]]>
                    </note>
                    <position>
                        <![CDATA[20]]>
                    </position>
                    <required>
                        <![CDATA[1]]>
                    </required>
                    <editor>
                        <![CDATA[1]]>
                    </editor>
                    <frontend>
                        <![CDATA[1]]>
                    </frontend>
                    <widget>
                        <![CDATA[1]]>
                    </widget>
                    <rss>
                        <![CDATA[1]]>
                    </rss>
                    <default_value>
                        <![CDATA[]]>
                    </default_value>
                    <index>
                        <![CDATA[1]]>
                    </index>
                </attribute>
                <attribute>
                    <code>
                        <![CDATA[email]]>
                    </code>
                    <label>
                        <![CDATA[Email]]>
                    </label>
                    <type>
                        <![CDATA[text]]>
                    </type>
                    <note>
                        <![CDATA[]]>
                    </note>
                    <position>
                        <![CDATA[30]]>
                    </position>
                    <required>
                        <![CDATA[1]]>
                    </required>
                    <admin_grid>
                        <![CDATA[1]]>
                    </admin_grid>
                    <frontend>
                        <![CDATA[0]]>
                    </frontend>
                    <widget>
                        <![CDATA[0]]>
                    </widget>
                    <rss>
                        <![CDATA[0]]>
                    </rss>
                    <default_value>
                        <![CDATA[]]>
                    </default_value>
                    <index>
                        <![CDATA[2]]>
                    </index>
                </attribute>
            </attributes>
        </entity>
        <entity>
            <label_singular>
                <![CDATA[Article]]>
            </label_singular>
            <label_plural>
                <![CDATA[Articles]]>
            </label_plural>
            <name_singular>
                <![CDATA[article]]>
            </name_singular>
            <name_plural>
                <![CDATA[articles]]>
            </name_plural>
            <is_tree>
                <![CDATA[0]]>
            </is_tree>
            <add_created_to_grid>
                <![CDATA[1]]>
            </add_created_to_grid>
            <add_updated_to_grid>
                <![CDATA[1]]>
            </add_updated_to_grid>
            <type>
                <![CDATA[eav]]>
            </type>
            <store>
                <![CDATA[]]>
            </store>
            <create_frontend>
                <![CDATA[1]]>
            </create_frontend>
            <create_list>
                <![CDATA[1]]>
            </create_list>
            <list_menu>
                <![CDATA[1]]>
            </list_menu>
            <list_template>
                <![CDATA[two_columns_left]]>
            </list_template>
            <create_view>
                <![CDATA[1]]>
            </create_view>
            <view_template>
                <![CDATA[two_columns_left]]>
            </view_template>
            <add_seo>
                <![CDATA[1]]>
            </add_seo>
            <url_rewrite>
                <![CDATA[1]]>
            </url_rewrite>
            <url_prefix>
                <![CDATA[article]]>
            </url_prefix>
            <url_suffix>
                <![CDATA[html]]>
            </url_suffix>
            <rss>
                <![CDATA[1]]>
            </rss>
            <widget>
                <![CDATA[1]]>
            </widget>
            <link_product>
                <![CDATA[1]]>
            </link_product>
            <show_on_product>
                <![CDATA[1]]>
            </show_on_product>
            <show_products>
                <![CDATA[1]]>
            </show_products>
            <product_attribute>
                <![CDATA[0]]>
            </product_attribute>
            <product_attribute_code>
                <![CDATA[]]>
            </product_attribute_code>
            <product_attribute_scope>
                <![CDATA[]]>
            </product_attribute_scope>
            <link_category>
                <![CDATA[1]]>
            </link_category>
            <show_on_category>
                <![CDATA[1]]>
            </show_on_category>
            <show_category>
                <![CDATA[1]]>
            </show_category>
            <category_attribute>
                <![CDATA[0]]>
            </category_attribute>
            <category_attribute_code>
                <![CDATA[]]>
            </category_attribute_code>
            <category_attribute_scope>
                <![CDATA[]]>
            </category_attribute_scope>
            <allow_comment>
                <![CDATA[1]]>
            </allow_comment>
            <manage_comment>
                <![CDATA[1]]>
            </manage_comment>
            <search>
                <![CDATA[1]]>
            </search>
            <api>
                <![CDATA[1]]>
            </api>
            <rest>
                <![CDATA[1]]>
            </rest>
            <product_attribute_group>
                <![CDATA[]]>
            </product_attribute_group>
            <category_attribute_group>
                <![CDATA[]]>
            </category_attribute_group>
            <attributes>
                <attribute>
                    <code>
                        <![CDATA[title]]>
                    </code>
                    <label>
                        <![CDATA[Title]]>
                    </label>
                    <type>
                        <![CDATA[text]]>
                    </type>
                    <scope>
                        <![CDATA[0]]>
                    </scope>
                    <note>
                        <![CDATA[]]>
                    </note>
                    <position>
                        <![CDATA[10]]>
                    </position>
                    <required>
                        <![CDATA[1]]>
                    </required>
                    <admin_grid>
                        <![CDATA[1]]>
                    </admin_grid>
                    <frontend>
                        <![CDATA[1]]>
                    </frontend>
                    <widget>
                        <![CDATA[1]]>
                    </widget>
                    <rss>
                        <![CDATA[1]]>
                    </rss>
                    <default_value>
                        <![CDATA[]]>
                    </default_value>
                    <is_name>
                        <![CDATA[1]]>
                    </is_name>
                    <index>
                        <![CDATA[0]]>
                    </index>
                    <user_defined>
                        <![CDATA[]]>
                    </user_defined>
                </attribute>
                <attribute>
                    <code>
                        <![CDATA[teaser]]>
                    </code>
                    <label>
                        <![CDATA[Teaser]]>
                    </label>
                    <type>
                        <![CDATA[textarea]]>
                    </type>
                    <scope>
                        <![CDATA[0]]>
                    </scope>
                    <note>
                        <![CDATA[]]>
                    </note>
                    <position>
                        <![CDATA[20]]>
                    </position>
                    <required>
                        <![CDATA[1]]>
                    </required>
                    <editor>
                        <![CDATA[0]]>
                    </editor>
                    <frontend>
                        <![CDATA[1]]>
                    </frontend>
                    <widget>
                        <![CDATA[1]]>
                    </widget>
                    <rss>
                        <![CDATA[1]]>
                    </rss>
                    <default_value>
                        <![CDATA[]]>
                    </default_value>
                    <index>
                        <![CDATA[1]]>
                    </index>
                    <user_defined>
                        <![CDATA[1]]>
                    </user_defined>
                </attribute>
                <attribute>
                    <code>
                        <![CDATA[content]]>
                    </code>
                    <label>
                        <![CDATA[Content]]>
                    </label>
                    <type>
                        <![CDATA[textarea]]>
                    </type>
                    <scope>
                        <![CDATA[0]]>
                    </scope>
                    <note>
                        <![CDATA[]]>
                    </note>
                    <position>
                        <![CDATA[30]]>
                    </position>
                    <required>
                        <![CDATA[1]]>
                    </required>
                    <editor>
                        <![CDATA[1]]>
                    </editor>
                    <frontend>
                        <![CDATA[1]]>
                    </frontend>
                    <widget>
                        <![CDATA[1]]>
                    </widget>
                    <rss>
                        <![CDATA[1]]>
                    </rss>
                    <default_value>
                        <![CDATA[]]>
                    </default_value>
                    <index>
                        <![CDATA[2]]>
                    </index>
                    <user_defined>
                        <![CDATA[1]]>
                    </user_defined>
                </attribute>
                <attribute>
                    <code>
                        <![CDATA[publication_date]]>
                    </code>
                    <label>
                        <![CDATA[Publication date]]>
                    </label>
                    <type>
                        <![CDATA[timestamp]]>
                    </type>
                    <scope>
                        <![CDATA[0]]>
                    </scope>
                    <note>
                        <![CDATA[]]>
                    </note>
                    <position>
                        <![CDATA[40]]>
                    </position>
                    <required>
                        <![CDATA[1]]>
                    </required>
                    <admin_grid>
                        <![CDATA[1]]>
                    </admin_grid>
                    <frontend>
                        <![CDATA[1]]>
                    </frontend>
                    <widget>
                        <![CDATA[1]]>
                    </widget>
                    <rss>
                        <![CDATA[1]]>
                    </rss>
                    <default_value>
                        <![CDATA[]]>
                    </default_value>
                    <index>
                        <![CDATA[3]]>
                    </index>
                    <user_defined>
                        <![CDATA[1]]>
                    </user_defined>
                </attribute>
                <attribute>
                    <code>
                        <![CDATA[image]]>
                    </code>
                    <label>
                        <![CDATA[Image]]>
                    </label>
                    <type>
                        <![CDATA[image]]>
                    </type>
                    <scope>
                        <![CDATA[0]]>
                    </scope>
                    <note>
                        <![CDATA[]]>
                    </note>
                    <position>
                        <![CDATA[50]]>
                    </position>
                    <required>
                        <![CDATA[]]>
                    </required>
                    <frontend>
                        <![CDATA[1]]>
                    </frontend>
                    <widget>
                        <![CDATA[1]]>
                    </widget>
                    <rss>
                        <![CDATA[1]]>
                    </rss>
                    <index>
                        <![CDATA[4]]>
                    </index>
                    <user_defined>
                        <![CDATA[1]]>
                    </user_defined>
                </attribute>
            </attributes>
        </entity>
        <entity>
            <label_singular>
                <![CDATA[Section]]>
            </label_singular>
            <label_plural>
                <![CDATA[Sections]]>
            </label_plural>
            <name_singular>
                <![CDATA[section]]>
            </name_singular>
            <name_plural>
                <![CDATA[sections]]>
            </name_plural>
            <is_tree>
                <![CDATA[1]]>
            </is_tree>
            <add_created_to_grid>
                <![CDATA[]]>
            </add_created_to_grid>
            <add_updated_to_grid>
                <![CDATA[]]>
            </add_updated_to_grid>
            <type>
                <![CDATA[eav]]>
            </type>
            <store>
                <![CDATA[]]>
            </store>
            <create_frontend>
                <![CDATA[1]]>
            </create_frontend>
            <create_list>
                <![CDATA[1]]>
            </create_list>
            <list_menu>
                <![CDATA[2]]>
            </list_menu>
            <list_template>
                <![CDATA[two_columns_left]]>
            </list_template>
            <create_view>
                <![CDATA[1]]>
            </create_view>
            <view_template>
                <![CDATA[two_columns_left]]>
            </view_template>
            <add_seo>
                <![CDATA[1]]>
            </add_seo>
            <url_rewrite>
                <![CDATA[1]]>
            </url_rewrite>
            <url_prefix>
                <![CDATA[]]>
            </url_prefix>
            <url_suffix>
                <![CDATA[]]>
            </url_suffix>
            <rss>
                <![CDATA[1]]>
            </rss>
            <widget>
                <![CDATA[1]]>
            </widget>
            <link_product>
                <![CDATA[1]]>
            </link_product>
            <show_on_product>
                <![CDATA[1]]>
            </show_on_product>
            <show_products>
                <![CDATA[1]]>
            </show_products>
            <product_attribute>
                <![CDATA[0]]>
            </product_attribute>
            <product_attribute_code>
                <![CDATA[]]>
            </product_attribute_code>
            <product_attribute_scope>
                <![CDATA[]]>
            </product_attribute_scope>
            <link_category>
                <![CDATA[1]]>
            </link_category>
            <show_on_category>
                <![CDATA[1]]>
            </show_on_category>
            <show_category>
                <![CDATA[1]]>
            </show_category>
            <category_attribute>
                <![CDATA[0]]>
            </category_attribute>
            <category_attribute_code>
                <![CDATA[]]>
            </category_attribute_code>
            <category_attribute_scope>
                <![CDATA[]]>
            </category_attribute_scope>
            <allow_comment>
                <![CDATA[1]]>
            </allow_comment>
            <manage_comment>
                <![CDATA[1]]>
            </manage_comment>
            <search>
                <![CDATA[]]>
            </search>
            <api>
                <![CDATA[1]]>
            </api>
            <rest>
                <![CDATA[1]]>
            </rest>
            <product_attribute_group>
                <![CDATA[]]>
            </product_attribute_group>
            <category_attribute_group>
                <![CDATA[]]>
            </category_attribute_group>
            <attributes>
                <attribute>
                    <code>
                        <![CDATA[name]]>
                    </code>
                    <label>
                        <![CDATA[Name]]>
                    </label>
                    <type>
                        <![CDATA[text]]>
                    </type>
                    <scope>
                        <![CDATA[0]]>
                    </scope>
                    <note>
                        <![CDATA[]]>
                    </note>
                    <position>
                        <![CDATA[10]]>
                    </position>
                    <required>
                        <![CDATA[1]]>
                    </required>
                    <admin_grid>
                        <![CDATA[1]]>
                    </admin_grid>
                    <frontend>
                        <![CDATA[1]]>
                    </frontend>
                    <widget>
                        <![CDATA[1]]>
                    </widget>
                    <rss>
                        <![CDATA[1]]>
                    </rss>
                    <default_value>
                        <![CDATA[]]>
                    </default_value>
                    <is_name>
                        <![CDATA[1]]>
                    </is_name>
                    <index>
                        <![CDATA[0]]>
                    </index>
                    <user_defined>
                        <![CDATA[]]>
                    </user_defined>
                </attribute>
                <attribute>
                    <code>
                        <![CDATA[description]]>
                    </code>
                    <label>
                        <![CDATA[Description]]>
                    </label>
                    <type>
                        <![CDATA[textarea]]>
                    </type>
                    <scope>
                        <![CDATA[0]]>
                    </scope>
                    <note>
                        <![CDATA[]]>
                    </note>
                    <position>
                        <![CDATA[20]]>
                    </position>
                    <required>
                        <![CDATA[0]]>
                    </required>
                    <editor>
                        <![CDATA[1]]>
                    </editor>
                    <frontend>
                        <![CDATA[1]]>
                    </frontend>
                    <widget>
                        <![CDATA[1]]>
                    </widget>
                    <rss>
                        <![CDATA[1]]>
                    </rss>
                    <default_value>
                        <![CDATA[]]>
                    </default_value>
                    <index>
                        <![CDATA[1]]>
                    </index>
                    <user_defined>
                        <![CDATA[1]]>
                    </user_defined>
                </attribute>
            </attributes>
        </entity>
    </entities>
    <relations>
        <author_article>parent</author_article>
        <author_section>none</author_section>
        <article_section>sibling</article_section>
    </relations>
</module>
Clone this wiki locally