Magento2 Custom Admin Extension

Magento2 Custom Admin Extension is one of the simple and useful extension as it removes the footer of the ‘magento’ copyright with custom logo and admin navigation colors.

Features:

  • Magento2 Custom Admin extension will allows to upload custom admin logo for the admin panel.
  • Magento2 Custom Admin extension will allows to upload custom logo for the admin login screen.
  • Magento2 Custom Admin extension will allows to apply the custom navigation background and text color for the admin panel.
  • Magento2 Custom Admin extension will remove footer copyright from the login screen.
  • Magento2 Custom Admin extension will remove footer from the admin panel.

 

Magento2 Custom Navigation Menu Color

Magento2 Custom Admin Menu Navigation Color by color picker
Magento2 Remove footer from admin panel

Get an array of all products attributes in magento2

[php]Sample model file : Dys\Ajaxsearch\Model\Searchtype.php code as below

namespace Dys\Ajaxsearch\Model;
use Magento\Catalog\Model;

class Searchtype implements \Magento\Framework\Option\ArrayInterface
{

protected $objectManager;

public function __construct( \Magento\Framework\ObjectManagerInterface $interface ) {
$this->objectManager = $interface;
}

/**
* Options getter
*
* @return array
*/
public function toOptionArray( $isMultiselect = false)
{
$customer_attributes = $this->objectManager->get('Magento\Catalog\Model\Product')->getAttributes();

$attributesArrays = array();

foreach($customer_attributes as $cal=>$val){
$attributesArrays[] = array(
'label' => $cal,
'value' => $val
);
}

return $attributesArrays;
}
}
?>

How to use :
use Dys\Ajaxsearch\Model\Attributes
[/php]

Add js css in module .xml in Magento2

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd">
<head>
 <!-- for css file -->
 <css src="Dys_Ajaxsearch::css/ajaxsearch.css"/> 
 <!-- for js file -->
 <script src="Dys_Ajaxsearch::js/ajaxsearch.js"/>
</head>
</page>