How can i create extension for page layout. I have no extension for this.
Asked
Active
Viewed 135 times
1
-
Can you be more specific? Do you mean a layout like 1column, 2column etc or a full page with blocks? – Sander Mangel Sep 30 '15 at 09:52
1 Answers
2
Add new custom layout for few cms pages in one Magento shop. It’s really useful for different static pages of your shop. First create extension with only config file in it: app/code/local/Metizsoft/CmsPageLayout/etc/config.xml
<?xml version="1.0"?>
<config>
<global>
<page>
<layouts>
<custom_static_page_one>
<label>Must Login Page</label>
<template>page/mustloginpage.phtml</template>
</custom_static_page_one>
</layouts>
</page>
</global>
</config>
Then activate it: app/etc/modules/Metizsoft_CmsPageLayout.xml
<?xml version="1.0"?>
<config>
<modules>
<Metizsoft_CmsPageLayout>
<codePool>local</codePool>
<active>true</active>
</Metizsoft_CmsPageLayout>
</modules>
</config>
Clear cache, add your page/mustloginpage.phtml template file (or copy some default one for start) to your current theme and you’re done.
Amit Bera
- 77,456
- 20
- 123
- 237
Jaydip Kansagra
- 565
- 4
- 15