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;
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
add a comment |
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
add a comment |
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
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
magento2 javascript widgets component
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
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
answered Apr 17 '16 at 19:00
mrtuvnmrtuvn
1,9581 gold badge18 silver badges30 bronze badges
1,9581 gold badge18 silver badges30 bronze badges
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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