Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Mastering Magento 2

You're reading from   Mastering Magento 2 Maximize the power of Magento 2 to create productive online stores

Arrow left icon
Product type Paperback
Published in Jun 2016
Publisher Packt
ISBN-13 9781785882364
Length 340 pages
Edition 2nd Edition
Languages
Tools
Concepts
Arrow right icon
Authors (3):
Arrow left icon
Bret Williams Bret Williams
Author Profile Icon Bret Williams
Bret Williams
 Gugliotti Gugliotti
Author Profile Icon Gugliotti
Gugliotti
Jonathan Bownds Jonathan Bownds
Author Profile Icon Jonathan Bownds
Jonathan Bownds
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Mastering Magento 2 Second Edition
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
1. Planning for Magento FREE CHAPTER 2. Installing Magento 2 3. Managing Products 4. Designs and Themes 5. Configuring to Sell 6. Managing Non-Product Content 7. Marketing Tools 8. Extending Magento 9. Optimizing Magento 10. Advanced Techniques 11. Pre-Launch Checklist Index

Customizing layouts


Page layouts in Magento are managed by XML files that control how the various components on a page are to be assembled. Think of layout files as the blueprints of your site, in that they contain the instructions that direct how various content blocks and template files are combined to produce the structural blocks that define the final output.

Blocks are elements in Magento that are responsible for rendering a discreet piece of content to the page. For example, a product display, category list, user login area, all would likely have their own blocks. These blocks in turn reference template files to generate the HTML for any given area.

Let's take a visual look at how structural blocks and content blocks are combined on a typical page, by analyzing a category page captured from our sample data default installation:

Now, let's look at this page with the structural blocks and content blocks shown inline:

To enable a view like this, that shows which blocks are being rendered...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime
Visually different images