How to implement admin product form's “Categories” field in category form?magento 2 custom module grid form need smart tagsHow to add custom column of custom table field or module to sales order admin grid in magento2?Magento 2 @escapeNotVerifiedMagento2 ui_component - form - image file input fieldMagento 2 edit price field in configurable product in admin panelHow to display custom category attribute in category form magento2?Magento 2: - Set WYSIWYG editor near to custom option in admin sideMagento2: define a new attribute type with a field using valuesForOptions settingwant to add product tab in magento 2 admin panel product edit pageHow to call functions in ui_component Magento 2Adding 'insert images' button to WYSIWYG editor for category default attribute 'description' / remove setting from ui xml file

Locked-up DOS computer beeped on keypress. What mechanism caused that?

How to remove the first colon ':' from a timestamp?

How to belay quickly ascending top-rope climbers?

We get more abuse than anyone else

Why isn't a binary file shown as 0s and 1s?

Arithmetics in LuaLaTeX

What would be the safest way to drop thousands of small, hard objects from a typical, high wing, GA airplane?

Which modern firearm should a time traveler bring to be easily reproducible for a historic civilization?

How do you give a date interval with diffuse dates?

Term “console” in game consoles

Are there any Saints that have miraculously overcome death (should have died, but did not)?

What happens if a company buys back all of its shares?

Is it legal for a supermarket to refuse to sell an adult beer if an adult with them doesn’t have their ID?

What were the problems on the Apollo 11 lunar module?

How much water can a ship take on before sinking?

Should I have one hand on throttle during engine ignition?

Word for something indicating the importance of guarding it properly

Could a US citizen born through "birth tourism" become President?

When designing an adventure, how can I ensure a continuous player experience in a setting that's likely to favor TPKs?

Who or what determines if a curse is valid or not?

How did Jayne know when to shoot?

Is it possible to have a career in SciComp without contributing to arms research?

How would you say "Sorry, that was a mistake on my part"?

I have found a mistake on someone's code published online: what is the protocol?



How to implement admin product form's “Categories” field in category form?


magento 2 custom module grid form need smart tagsHow to add custom column of custom table field or module to sales order admin grid in magento2?Magento 2 @escapeNotVerifiedMagento2 ui_component - form - image file input fieldMagento 2 edit price field in configurable product in admin panelHow to display custom category attribute in category form magento2?Magento 2: - Set WYSIWYG editor near to custom option in admin sideMagento2: define a new attribute type with a field using valuesForOptions settingwant to add product tab in magento 2 admin panel product edit pageHow to call functions in ui_component Magento 2Adding 'insert images' button to WYSIWYG editor for category default attribute 'description' / remove setting from ui xml file






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















in magento 2.1 there is user friendly box generated for "Categories" field. enter image description here



I am trying to apply this box for custom field in category form, but without success so far.



I tried to create similar, like in https://github.com/magento/magento2/blob/2.1.0-rc3/app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/Categories.php, but without success. It makes it harder, that form implementation is different between product and category.



XML file for category form https://github.com/magento/magento2/blob/2.1.0-rc3/app/code/Magento/Catalog/view/adminhtml/ui_component/category_form.xml



XML file for product form https://github.com/magento/magento2/blob/2.1.0-rc3/app/code/Magento/Catalog/view/adminhtml/ui_component/product_form.xml



Someone knows, how to achieve this ?










share|improve this question
























  • Please Follow the link : click here

    – Mandar Parbate
    Oct 31 '17 at 13:15

















2















in magento 2.1 there is user friendly box generated for "Categories" field. enter image description here



I am trying to apply this box for custom field in category form, but without success so far.



I tried to create similar, like in https://github.com/magento/magento2/blob/2.1.0-rc3/app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/Categories.php, but without success. It makes it harder, that form implementation is different between product and category.



XML file for category form https://github.com/magento/magento2/blob/2.1.0-rc3/app/code/Magento/Catalog/view/adminhtml/ui_component/category_form.xml



XML file for product form https://github.com/magento/magento2/blob/2.1.0-rc3/app/code/Magento/Catalog/view/adminhtml/ui_component/product_form.xml



Someone knows, how to achieve this ?










share|improve this question
























  • Please Follow the link : click here

    – Mandar Parbate
    Oct 31 '17 at 13:15













2












2








2


1






in magento 2.1 there is user friendly box generated for "Categories" field. enter image description here



I am trying to apply this box for custom field in category form, but without success so far.



I tried to create similar, like in https://github.com/magento/magento2/blob/2.1.0-rc3/app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/Categories.php, but without success. It makes it harder, that form implementation is different between product and category.



XML file for category form https://github.com/magento/magento2/blob/2.1.0-rc3/app/code/Magento/Catalog/view/adminhtml/ui_component/category_form.xml



XML file for product form https://github.com/magento/magento2/blob/2.1.0-rc3/app/code/Magento/Catalog/view/adminhtml/ui_component/product_form.xml



Someone knows, how to achieve this ?










share|improve this question
















in magento 2.1 there is user friendly box generated for "Categories" field. enter image description here



I am trying to apply this box for custom field in category form, but without success so far.



I tried to create similar, like in https://github.com/magento/magento2/blob/2.1.0-rc3/app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/Categories.php, but without success. It makes it harder, that form implementation is different between product and category.



XML file for category form https://github.com/magento/magento2/blob/2.1.0-rc3/app/code/Magento/Catalog/view/adminhtml/ui_component/category_form.xml



XML file for product form https://github.com/magento/magento2/blob/2.1.0-rc3/app/code/Magento/Catalog/view/adminhtml/ui_component/product_form.xml



Someone knows, how to achieve this ?







magento2 magento-2.1






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 19 '16 at 12:29









Ronak Chauhan

4,3941 gold badge17 silver badges52 bronze badges




4,3941 gold badge17 silver badges52 bronze badges










asked Aug 26 '16 at 15:26









MartinsMartins

112 bronze badges




112 bronze badges












  • Please Follow the link : click here

    – Mandar Parbate
    Oct 31 '17 at 13:15

















  • Please Follow the link : click here

    – Mandar Parbate
    Oct 31 '17 at 13:15
















Please Follow the link : click here

– Mandar Parbate
Oct 31 '17 at 13:15





Please Follow the link : click here

– Mandar Parbate
Oct 31 '17 at 13:15










1 Answer
1






active

oldest

votes


















0














I have the beginning of the anwser. When you create your form, you have to set up a new field type like this:



 $fieldset->addType(
'categories',
'MagentoCatalogBlockAdminhtmlProductHelperFormCategory'
);


Then you can use it :



 $fieldset->addField(
'categories_id',
'categories',
[
'name' => 'categories_id',
'label' => __('Categories'),
'title' => __('Categories')

]
);


And then you will have your categories field! But last issue the rendering is broken because Magento use MagentoCatalogUiDataProviderProductFormModifierCategories to enhance it. I don't know how to use this modifier to apply it on the custom categories field.






share|improve this answer



























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "479"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f133301%2fhow-to-implement-admin-product-forms-categories-field-in-category-form%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I have the beginning of the anwser. When you create your form, you have to set up a new field type like this:



     $fieldset->addType(
    'categories',
    'MagentoCatalogBlockAdminhtmlProductHelperFormCategory'
    );


    Then you can use it :



     $fieldset->addField(
    'categories_id',
    'categories',
    [
    'name' => 'categories_id',
    'label' => __('Categories'),
    'title' => __('Categories')

    ]
    );


    And then you will have your categories field! But last issue the rendering is broken because Magento use MagentoCatalogUiDataProviderProductFormModifierCategories to enhance it. I don't know how to use this modifier to apply it on the custom categories field.






    share|improve this answer





























      0














      I have the beginning of the anwser. When you create your form, you have to set up a new field type like this:



       $fieldset->addType(
      'categories',
      'MagentoCatalogBlockAdminhtmlProductHelperFormCategory'
      );


      Then you can use it :



       $fieldset->addField(
      'categories_id',
      'categories',
      [
      'name' => 'categories_id',
      'label' => __('Categories'),
      'title' => __('Categories')

      ]
      );


      And then you will have your categories field! But last issue the rendering is broken because Magento use MagentoCatalogUiDataProviderProductFormModifierCategories to enhance it. I don't know how to use this modifier to apply it on the custom categories field.






      share|improve this answer



























        0












        0








        0







        I have the beginning of the anwser. When you create your form, you have to set up a new field type like this:



         $fieldset->addType(
        'categories',
        'MagentoCatalogBlockAdminhtmlProductHelperFormCategory'
        );


        Then you can use it :



         $fieldset->addField(
        'categories_id',
        'categories',
        [
        'name' => 'categories_id',
        'label' => __('Categories'),
        'title' => __('Categories')

        ]
        );


        And then you will have your categories field! But last issue the rendering is broken because Magento use MagentoCatalogUiDataProviderProductFormModifierCategories to enhance it. I don't know how to use this modifier to apply it on the custom categories field.






        share|improve this answer















        I have the beginning of the anwser. When you create your form, you have to set up a new field type like this:



         $fieldset->addType(
        'categories',
        'MagentoCatalogBlockAdminhtmlProductHelperFormCategory'
        );


        Then you can use it :



         $fieldset->addField(
        'categories_id',
        'categories',
        [
        'name' => 'categories_id',
        'label' => __('Categories'),
        'title' => __('Categories')

        ]
        );


        And then you will have your categories field! But last issue the rendering is broken because Magento use MagentoCatalogUiDataProviderProductFormModifierCategories to enhance it. I don't know how to use this modifier to apply it on the custom categories field.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 1 '16 at 8:33

























        answered Nov 1 '16 at 2:13









        PfexpertimePfexpertime

        162 bronze badges




        162 bronze badges



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f133301%2fhow-to-implement-admin-product-forms-categories-field-in-category-form%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

            Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

            Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?