Glen Romero
Glen Romero

Reputation: 319

How to add blank HTML page to Magento?

I'm trying to figure out how to add a blank HTML page to Magento, so that I can drop in some HTML content without Magento trying to inject its own code/layout.

I do not want to use the exisiting magento layout that I have for this page -- I want this page to be entirely blank and only load the HTML content/scripts that I drop in.

I've tried just adding the content via the HTML editor under the content section, and under the meta data section I've set the theme to blank and layout to empty, but when the page loads all of the HTML I added via the WSYWIG editor, it is stripped out. If I save the page, then go back in and click the HTML button, all the HTML I added is gone.

Upvotes: 1

Views: 1720

Answers (2)

clockworkgeek
clockworkgeek

Reputation: 37700

Each time the WYSIWYG editor runs it strips out lots of HTML, to protect you from yourself. You can prevent it from running automatically in System > Configuration > Content Management > WYSIWYG Options. Change "Enabled by default" to "Disabled by default" then you will be able to edit the page without it breaking itself.

(Also try installing Lesti Version so you can rollback if you lose some work)

However, that defeats the purpose of using such a capable framework. If all you want is to work with raw HTML then save an HTML file and upload it the old fashioned way, through FTP. You are not forced to use Magento for every detail of your site.

Upvotes: 2

magento68
magento68

Reputation: 26

Have you tried the Design Tab for your CMS Page and set the Layout to "Empty"? BTW on Content tab, you need to at least type a   in order to save the page.

Upvotes: 0

Related Questions