MovableType
From HeadBackup
Revision as of 18:39, 18 November 2010 by Andrew (talk | contribs) (→Creating & Generating a "Page" that uses PHP)
Creating & Generating a "Page" that uses PHP
- Create the page and include your PHP code snippet
- Export to a .html file like usual
- Manually rename the .html file to .php
- Change permissions on the file to 644 (some web hosts will prevent .php from running as 666)
Note that the PHP code may disappear if you try to edit the page after the initial publish, but it appears to be a display issue only. As long as you don't re-save the page then the code will continue to be included any time the page is published.
Turn on the Address Book
This feature disappeared with the release of MT4.2, but there is a configuration directive to turn it back on.
To enable the address book feature, place this line in your mt-config.cgi file:
EnableAddressBook 1
Thanks to http://www.movabletype.org/documentation/appendices/config-directives/enableaddressbook.html for this info.