How do i can extend or re-use Gallery Js Component of module Catalog in right wayMagento 2 how to extend core moduleHow to implement or extend product gallery widgetHow can I use $_FILES in a Magento 2 way?How to extend Catalog Widget block?How to extend core UI Component in Magento 2Can I override or extend a Magento 2 module?How can I extend a UI component JavaScript in Magento 2?How can I use webrotate 360 in my image gallery?Magento 2: How can I use ifconfig or something similar to layout componentExtend a default JS component or Use Mixin

LED glows slightly during soldering

What do three diagonal dots above a letter mean in the "Misal rico de Cisneros" (Spain, 1518)?

What is the correct parsing of お高くとまる?

Is it possible to see individual photons impressioning film?

Efficiently defining a SparseArray function

Is there any reason why MCU changed the Snap to Blip

Why do we need common sense in AI?

What is this little owl-like bird?

Graduate student with abysmal English writing skills, how to help

How do you move up one folder in Finder?

What would +1/+2/+3 items be called in game?

Credit score and financing new car

Why does every calorie tracking app give a different target calorie count for the same goals?

What are the original Russian words for a prostitute?

Is this a reference to the film Alien in the novel 2010 Odyssey Two?

Why does wrapping Aluminium foil around my food help it keep warm, aluminium be good conductor should have no effect?

What minifigure is this?

How to tell someone I'd like to become friends without letting them think I'm romantically interested in them?

Why does the US seem to have a rather low economic interest in Africa?

Integer Lists of Noah

When I press the space bar it deletes the letters in front of it

Is there a strong legal guarantee that the U.S. can give to another country that it won't attack them?

The three greedy pirates

Chrysanthemum bejeweled with dew drops



How do i can extend or re-use Gallery Js Component of module Catalog in right way


Magento 2 how to extend core moduleHow to implement or extend product gallery widgetHow can I use $_FILES in a Magento 2 way?How to extend Catalog Widget block?How to extend core UI Component in Magento 2Can I override or extend a Magento 2 module?How can I extend a UI component JavaScript in Magento 2?How can I use webrotate 360 in my image gallery?Magento 2: How can I use ifconfig or something similar to layout componentExtend a default JS component or Use Mixin






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








0















This component is located in Magento_Catalog/js/product-gallery



map: 
'*':
categoryForm: 'Magento_Catalog/catalog/category/form',
newCategoryDialog: 'Magento_Catalog/js/new-category-dialog',
categoryTree: 'Magento_Catalog/js/category-tree',
productGallery: 'Magento_Catalog/js/product-gallery',
baseImage: 'Magento_Catalog/catalog/base-image-uploader',
productAttributes: 'Magento_Catalog/catalog/product-attributes'




I already copied the same file with a different name but when my component runs, it does not work properly like the original one. Official docs mentions to extend it, but i can't make it work successfully
It would be more helpful if the core teams explain more details for me as to how to implement it










share|improve this question






























    0















    This component is located in Magento_Catalog/js/product-gallery



    map: 
    '*':
    categoryForm: 'Magento_Catalog/catalog/category/form',
    newCategoryDialog: 'Magento_Catalog/js/new-category-dialog',
    categoryTree: 'Magento_Catalog/js/category-tree',
    productGallery: 'Magento_Catalog/js/product-gallery',
    baseImage: 'Magento_Catalog/catalog/base-image-uploader',
    productAttributes: 'Magento_Catalog/catalog/product-attributes'




    I already copied the same file with a different name but when my component runs, it does not work properly like the original one. Official docs mentions to extend it, but i can't make it work successfully
    It would be more helpful if the core teams explain more details for me as to how to implement it










    share|improve this question


























      0












      0








      0


      1






      This component is located in Magento_Catalog/js/product-gallery



      map: 
      '*':
      categoryForm: 'Magento_Catalog/catalog/category/form',
      newCategoryDialog: 'Magento_Catalog/js/new-category-dialog',
      categoryTree: 'Magento_Catalog/js/category-tree',
      productGallery: 'Magento_Catalog/js/product-gallery',
      baseImage: 'Magento_Catalog/catalog/base-image-uploader',
      productAttributes: 'Magento_Catalog/catalog/product-attributes'




      I already copied the same file with a different name but when my component runs, it does not work properly like the original one. Official docs mentions to extend it, but i can't make it work successfully
      It would be more helpful if the core teams explain more details for me as to how to implement it










      share|improve this question
















      This component is located in Magento_Catalog/js/product-gallery



      map: 
      '*':
      categoryForm: 'Magento_Catalog/catalog/category/form',
      newCategoryDialog: 'Magento_Catalog/js/new-category-dialog',
      categoryTree: 'Magento_Catalog/js/category-tree',
      productGallery: 'Magento_Catalog/js/product-gallery',
      baseImage: 'Magento_Catalog/catalog/base-image-uploader',
      productAttributes: 'Magento_Catalog/catalog/product-attributes'




      I already copied the same file with a different name but when my component runs, it does not work properly like the original one. Official docs mentions to extend it, but i can't make it work successfully
      It would be more helpful if the core teams explain more details for me as to how to implement it







      magento2 javascript widgets component






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 14 '16 at 15:01









      Reena Parekh

      1,4021 gold badge12 silver badges34 bronze badges




      1,4021 gold badge12 silver badges34 bronze badges










      asked Apr 13 '16 at 13:45









      mrtuvnmrtuvn

      1,9581 gold badge18 silver badges30 bronze badges




      1,9581 gold badge18 silver badges30 bronze badges




















          1 Answer
          1






          active

          oldest

          votes


















          0














          1 . Initialize js components



          var config = 
          "map":
          '*':
          "productGallery2": 'Vendor_CustomModule/js/product-gallery'

          ,
          "shim":
          "ves/productGallery2": ["productGallery","baseImage"]
          ,
          "deps": [
          "Magento_Catalog/js/product-gallery",
          "Magento_Catalog/catalog/base-image-uploader"
          ],
          "paths":
          "your_namespace/productGallery2": "Vendor_CustomModule/js/product-gallery"

          ;


          2. Extend widget



          define([
          'jquery',
          'mage/template',
          'Magento_Ui/js/modal/alert',
          'jquery/ui',
          'baseImage',
          'mage/translate',
          'domReady!'
          ], function (jQuery, mageTemplate, alert) {
          "use strict";

          jQuery.widget('yourNamespace.productGallery',
          options:
          //init vars
          ,

          //override original method
          original: function()
          this._super();
          //modify code


          return jQuery.yourNamespace.productGallery;
          );





          Clear var/cache, var/generation, pub/static/adminhtml , pub/static/_requirejs for update
          I got new issues . But better should post it in another question






          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%2f110755%2fhow-do-i-can-extend-or-re-use-gallery-js-component-of-module-catalog-in-right-wa%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














            1 . Initialize js components



            var config = 
            "map":
            '*':
            "productGallery2": 'Vendor_CustomModule/js/product-gallery'

            ,
            "shim":
            "ves/productGallery2": ["productGallery","baseImage"]
            ,
            "deps": [
            "Magento_Catalog/js/product-gallery",
            "Magento_Catalog/catalog/base-image-uploader"
            ],
            "paths":
            "your_namespace/productGallery2": "Vendor_CustomModule/js/product-gallery"

            ;


            2. Extend widget



            define([
            'jquery',
            'mage/template',
            'Magento_Ui/js/modal/alert',
            'jquery/ui',
            'baseImage',
            'mage/translate',
            'domReady!'
            ], function (jQuery, mageTemplate, alert) {
            "use strict";

            jQuery.widget('yourNamespace.productGallery',
            options:
            //init vars
            ,

            //override original method
            original: function()
            this._super();
            //modify code


            return jQuery.yourNamespace.productGallery;
            );





            Clear var/cache, var/generation, pub/static/adminhtml , pub/static/_requirejs for update
            I got new issues . But better should post it in another question






            share|improve this answer



























              0














              1 . Initialize js components



              var config = 
              "map":
              '*':
              "productGallery2": 'Vendor_CustomModule/js/product-gallery'

              ,
              "shim":
              "ves/productGallery2": ["productGallery","baseImage"]
              ,
              "deps": [
              "Magento_Catalog/js/product-gallery",
              "Magento_Catalog/catalog/base-image-uploader"
              ],
              "paths":
              "your_namespace/productGallery2": "Vendor_CustomModule/js/product-gallery"

              ;


              2. Extend widget



              define([
              'jquery',
              'mage/template',
              'Magento_Ui/js/modal/alert',
              'jquery/ui',
              'baseImage',
              'mage/translate',
              'domReady!'
              ], function (jQuery, mageTemplate, alert) {
              "use strict";

              jQuery.widget('yourNamespace.productGallery',
              options:
              //init vars
              ,

              //override original method
              original: function()
              this._super();
              //modify code


              return jQuery.yourNamespace.productGallery;
              );





              Clear var/cache, var/generation, pub/static/adminhtml , pub/static/_requirejs for update
              I got new issues . But better should post it in another question






              share|improve this answer

























                0












                0








                0







                1 . Initialize js components



                var config = 
                "map":
                '*':
                "productGallery2": 'Vendor_CustomModule/js/product-gallery'

                ,
                "shim":
                "ves/productGallery2": ["productGallery","baseImage"]
                ,
                "deps": [
                "Magento_Catalog/js/product-gallery",
                "Magento_Catalog/catalog/base-image-uploader"
                ],
                "paths":
                "your_namespace/productGallery2": "Vendor_CustomModule/js/product-gallery"

                ;


                2. Extend widget



                define([
                'jquery',
                'mage/template',
                'Magento_Ui/js/modal/alert',
                'jquery/ui',
                'baseImage',
                'mage/translate',
                'domReady!'
                ], function (jQuery, mageTemplate, alert) {
                "use strict";

                jQuery.widget('yourNamespace.productGallery',
                options:
                //init vars
                ,

                //override original method
                original: function()
                this._super();
                //modify code


                return jQuery.yourNamespace.productGallery;
                );





                Clear var/cache, var/generation, pub/static/adminhtml , pub/static/_requirejs for update
                I got new issues . But better should post it in another question






                share|improve this answer













                1 . Initialize js components



                var config = 
                "map":
                '*':
                "productGallery2": 'Vendor_CustomModule/js/product-gallery'

                ,
                "shim":
                "ves/productGallery2": ["productGallery","baseImage"]
                ,
                "deps": [
                "Magento_Catalog/js/product-gallery",
                "Magento_Catalog/catalog/base-image-uploader"
                ],
                "paths":
                "your_namespace/productGallery2": "Vendor_CustomModule/js/product-gallery"

                ;


                2. Extend widget



                define([
                'jquery',
                'mage/template',
                'Magento_Ui/js/modal/alert',
                'jquery/ui',
                'baseImage',
                'mage/translate',
                'domReady!'
                ], function (jQuery, mageTemplate, alert) {
                "use strict";

                jQuery.widget('yourNamespace.productGallery',
                options:
                //init vars
                ,

                //override original method
                original: function()
                this._super();
                //modify code


                return jQuery.yourNamespace.productGallery;
                );





                Clear var/cache, var/generation, pub/static/adminhtml , pub/static/_requirejs for update
                I got new issues . But better should post it in another question







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 17 '16 at 19:00









                mrtuvnmrtuvn

                1,9581 gold badge18 silver badges30 bronze badges




                1,9581 gold badge18 silver badges30 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%2f110755%2fhow-do-i-can-extend-or-re-use-gallery-js-component-of-module-catalog-in-right-wa%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

                    Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

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

                    Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form