Question

In the sample data with the Luma theme the home page is implemented with a Widget ("Home Page" Widget of type "CMS Static Block") plus block ("Home Page Block" containing the page content area html).

Particularly for a learning example, why not simply use a Page? It seems you can put the content into the Page, and assign the page to the CMS Home Page > Main Content Area. Would that not achieve the same effect?

(Related question with diagram: How does Luma theme home page work?)

Was it helpful?

Solution

why not simply use a Page?

That's the goal of sample data: show samples / examples of what can be achieved in Magento. The widget is there to show how widgets work.

Would that not achieve the same effect?

Yes you can get the same effect by copy/paste the content of the CMS block in the CMS page content and remove the widget.

It becomes useful to use such widgets when you have several different blocks in your page and they have different purposes. E.g one widget for site presentation and one widget for current sale. You can disable the current sale block when the sale is over and thus you don't have to delete/comment content from the page

OTHER TIPS

So Blocks are there to fill content into the page Widget structure that is already provided by the LUMA theme?

So LUMA sounds like it provides page structure via Widgets and the content developer finds the correct Widget to place the Content in?

Is there a LUMA "page Widget map" that points out the location of the Widgets on a particular page?

As far as theming goes do you see any problem with the way I am using CSS and not LESS?

OMG, this is such great info!! Thank you so much!!!

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top