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

                    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?