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;
in magento 2.1 there is user friendly box generated for "Categories" field.
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
add a comment |
in magento 2.1 there is user friendly box generated for "Categories" field.
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
Please Follow the link : click here
– Mandar Parbate
Oct 31 '17 at 13:15
add a comment |
in magento 2.1 there is user friendly box generated for "Categories" field.
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
in magento 2.1 there is user friendly box generated for "Categories" field.
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
magento2 magento-2.1
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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.
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%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
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.
add a comment |
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.
add a comment |
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.
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.
edited Nov 1 '16 at 8:33
answered Nov 1 '16 at 2:13
PfexpertimePfexpertime
162 bronze badges
162 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%2f133301%2fhow-to-implement-admin-product-forms-categories-field-in-category-form%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
Please Follow the link : click here
– Mandar Parbate
Oct 31 '17 at 13:15