Magento 2 : Study Notes

Cacheable and uncacheable pages To create an uncacheable page, mark any block on that page as uncacheable in the layout using cacheable=”false”. Example: Note During theme development, when you change any files stored here, you need to clear pub/static (preserving the `.htaccess` file in place) and var/view_preprocessed directories, and then Read more…

Magento: Custom Module Set Meta Data Using Config Data

Using Helper Function: 1. Create functions in your module helper file app/code/local/Namespace/Module/Helper/Data.php 2. Get Data from Config in your layout file app/design/frontend/default/default/layout/namespace_module.xml Or You can also set meta information using block file: app/code/local/Namespace/Module/Block/BlockFile.php In your block _prepareLayout fubction add the following code: