A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [custom-block]

The tag has no usage guidance, but it has a tag wiki.

Filter by
Sorted by
Tagged with
3
votes
1answer
4k views

magento 2 - How to create a custom “admin” block and display it on an existing Admin page?

I need to create a custom "admin" block and display it on any admin "product edit" page in Magento 2.1.x. But I also want to be able to display it on any admin page, if I need. Which block classes ...
4
votes
1answer
20k views

Add block in header layout

I have added my custom module block in header in layout like below pinsearch.xml <default> <reference name="header"> <block type="core/template" name="pinsearch" as="...
2
votes
3answers
124 views

Create block between header and main

I am facing issue with creating a block between header.container and main. so that I can put the banner over there. And I need the banner in home page only please help me for the same.
7
votes
3answers
11k views

Custom Block “Invalid Block Type”

I have a custom Block which I'm now trying to break into two sepparate blocks. Here's my folder structure (on app/code/local/MyNamespace/CustomerDashboard): Since I want to break the functions of ...
1
vote
1answer
1k views

Add custom block in Magento 2 admin dashboard

Is there any way to add a custom block in magento 2 admin dashboard? I have a requirement to add custom table in dashboard. Can anyone help me? My current magento version 2.2.1
3
votes
2answers
5k views

Magento2 loading admin layout and template in a new page

I can't get my head wrap around this. I have this controller namespace Vendor\Gift\Controller\Adminhtml\Gift; use Magento\Backend\App\Action\Context; class Index extends \Magento\Backend\App\...
2
votes
2answers
3k views

How do you add a custom block in checkout/cart page in magento2?

I am trying to create a custom block on the checkout/cart page so that I can show a countdown to free shipping. I keep getting Invalid block type as an error, though. checkout_cart_index.xml <?...