When using a cms page in magento I sometimes need an empty content section. Most times this is for my homepage. But magento forces me to put something in content before it can be saved.
Is there a way to get magento to allow empty cms page content?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
Mage_Adminhtml_Block_Cms_Page_Edit_Tab_Content::_prepareForm()method dispatches theadminhtml_cms_page_edit_tab_content_prepare_formevent. You can observe this event, grab the field from the form object which is passed into the event, and change itsrequiredproperty tofalse.