Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions about extending the Magento admin panel and the admin theme
16
votes
Accepted
Magento 2.1 Ui Component : Hide and show field base on dropdown field
name="validation" xsi:type="array">
<item name="required-entry" xsi:type="boolean">true</item>
</item>
</item>
</argument>
</field>
NameSpace/ModuleName/view/adminhtml … ;
$('div[data-index="monday_break_time"]').show();
$('div[data-index="monday_offbreak_time"]').show();
}
},
});
});
NameSpace/ModuleName/view/adminhtml …
8
votes
Accepted
Magento 2: How add dropdown in admin form?
Change Category class by following code:
namespace Book\Flip\Model\Source;
class Category implements \Magento\Framework\Option\ArrayInterface
{
/**
* Retrieve options array.
*
* @r …
5
votes
Accepted
Show data from two different tables in Magento Grid.php
You can try with following code.
protected function _prepareCollection()
{
$collection = Mage::getResourceModel($this->_getCollectionClass());
$collection->getSelect()->joinLeft(
'sal …
4
votes
Magento Add Condition Rule In A Custom Form in magento 2
="sortOrder" xsi:type="number">10</item>
</item>
</argument>
<htmlContent name="html_content">
<argument name="block" xsi:type="object">Magento\SalesRule\Block\Adminhtml …
4
votes
Magento 2 - What is the LayoutProcessor for addresses in the admin panel?
For admin, you need to add field through ui_component form. Magento uses the following form by default.
vendor/magento/module-customer/view/base/ui_component/customer_form.xml
So in your case cr …
3
votes
Accepted
magento Adminhtml Users Grid by Role Id add column
Replace following code.
$collection->getSelect()->join(
array('ar' =>'admin_role'),
'ar.user_id = main_table.user_id',
array('role_id')
);
So _prepareCo …
3
votes
Accepted
Magento 2.1 :- CMS Page and Static Block
So when you create your custom module admin grid, your di.xml should be under etc folder, not etc/adminhtml. So
Move Job/Test/etc/adminhtml/di.xml to Job/Test/etc/di.xml …
2
votes
How to make the fields of the fieldset multidependable?
Create a di.xml under adminhtml and add following code:
Basically need to overwrite
Magento\Backend\Block\Widget\Form\Element\Dependence class
<preference for="Magento\Backend\Block\Widget\Form …
2
votes
Accepted
How does the CMS page admin form data provider gets its data?
Check following function
/**
* {@inheritdoc}
*/
public function getDataSourceData()
{
$dataSource = [];
$id = $this->getContext()->getRequestParam($this->getContext()->getDataProvider()-> …
2
votes
Accepted
How to add custom dropdown attribute for category in Magento 2
Add following line
<item name="options" xsi:type="object">Magento\Catalog\Model\Category\Attribute\Source\Page</item>
So your xml looks like
<?xml version="1.0"?>
<form xmlns:xsi="http://www.w3. …
2
votes
Magento 2 : add custom JavaScript to CMS page create/edit in admin
Try following way:
Vendor/Module/view/adminhtml/layout/cms_page_edit.xml
<?xml version="1.0"? … referenceContainer>
</body>
</page>
Vendor/Module/Block/Cms/Custom.php
namespace Vendor\Module\Block\Cms;
class Custom extends \Magento\Framework\View\Element\Template
{
}
Vendor/Module/view/adminhtml …
2
votes
Accepted
magento 2 admin how to edit table row with ko (knockout) like customer grid?
app/code/Webkul/Grid/view/adminhtml/ui_component/grid_record_grid_list.xml
<?xml version="1.0" encoding="UTF-8"?>
<! … php
namespace Webkul\Grid\Controller\Adminhtml\Grid;
use Magento\Backend\App\Action\Context;
use Magento\Framework\Controller\Result\JsonFactory;
class inlineEdit extends \Magento\Backend\App\Action …
1
vote
Accepted
Invalid product id. Should be numeric value greater than 0
\Product\Edit\Button\Custom
</item>
</argument>
</form>
Button class [SR/StackExchange/Block/Adminhtml/Product/Edit/Button/Custom.php]
namespace SR\StackExchange\Block\Adminhtml\Product … /Stackexchange/Custom.php]
namespace SR\StackExchange\Controller\Adminhtml\Stackexchange;
class Custom extends \Magento\Catalog\Controller\Adminhtml\Product
{
/**
* @var \Magento\Catalog\ …
1
vote
Accepted
Trying to hide order with specific status from the sales order grid in Adminhtml
Try following way:
protected function _prepareCollection()
{
$collection = Mage::getResourceModel($this->_getCollectionClass());
$collection->addFieldToFilter('status', array('neq' => 'epay …
1
vote
Block type breaks when rewriting a block in custom module
Add following code inside global tag
<blocks>
<placeholderattr>
<class>Custom_PlaceholderAttribute_Block_Block</class>
</placeholderattr>
</blocks>
So your code looks like:
<conf …