Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Delete standard template
 
kevino_18
Jr. Member
 
Total Posts:  4
Joined:  2010-07-20
 

Hi Everybody,

I want delete some standard templates in Magento CMS (For example: 1-column, 2-columns-left), so the user can’t use them as markup for custom pages??

Help!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Andrey N
Sr. Member
 
Avatar
Total Posts:  104
Joined:  2008-07-15
Ukraine, Kharkov
 

Hi! The options list is taken from here:

Mage::getSingleton('page/source_layout')->getOptions()
So, you need to override a model Mage_Page_Model_Source_Layout, method getOptions() - exclude unnecessary options from result array.
 
Magento Community Magento Community
Magento Community
Magento Community
 
kevino_18
Jr. Member
 
Total Posts:  4
Joined:  2010-07-20
 

Thanks!! It’s works!! smile

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top