- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Difference between Widget and Block
Hi Folks,
One more here ..
What is the Difference between Widget and Block. when should I use Block and when should I use Widget ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Difference between Widget and Block
Kindly refer below links,
Magento 2 Blogs/Tutorial
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Difference between Widget and Block
Well , AKAIK both are almost/ Near to same but still there is slender difference between both which i have mention below :
Widget - As a concept, a widget is a unique key (widget type) that maps to some code, and a set of parameters used by that code.
Static Blocks - A static block is actually some text that can contain other elements (like widgets).
The difference between them from Magento's point of view is that you can place different widgets in different sections of different pages using the backend UI.
The static blocks can only be placed in fewer page types and sections.
For More details you can refer this link for the same - https://magento.stackexchange.com/questions/131287/what-is-the-difference-between-block-and-widget-c...
Hope it helps !