Deep in the Magento Layout system, there's the following code that's used to turn your package layout xml files into the specific XML needed to create your Blocks, and therefore create your pages
public function merge($handle)
{
$packageUpdatesStatus = $this->fetchPackageLayoutUpdates($handle);
if (Mage::app()->isInstalled()) {
$this->fetchDbLayoutUpdates($handle);
}
}
The second method there fetchDbLayoutUpdates
tries to load additional XML Updates from the database with SQL queries something like this
SELECT `update`.`xml` FROM `core_layout_update` AS `update`
INNER JOIN `core_layout_link` AS `link`
ON link.layout_update_id=update.layout_update_id
WHERE (link.store_id IN (0, '1'))
AND (link.area='frontend')
AND (link.package='default')
AND (link.theme='default')
AND (update.handle = 'default')
ORDER BY `update`.`sort_order` ASC'
Both the core_layout_update
and core_layout_link
tables are empty in a default installation.
So, I've always assumed this is a legacy feature that predates my time with Magento. Does anyone know if this feature is used anywhere by
The Magento Core Codebase
Any well known/prominent Extensions
You!
I can see why the feature's been left in place (legacy concerns and what not), but I'm curious if it's something that's been officially-ish abandoned, or if it's just vastly under utilized.
A CMS block is injected into the layout by using the Magento/Cms/Block/Block class with the block_id argument. Any block or container can be used as a reference. As a result, the CMS block added to the bottom of the page.
The basic view of all Magento storefront pages is defined in two page configuration layout files located in the Magento_Theme module: <Magento_Theme_module_dir>/view/frontend/layout/default. xml : defines the page layout.
I have some entries for cms_index_index
that adds an enterprise_banner
block. So it is used by Enterprise edition at least.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With