Difference between revisions of "MovableType"

From HeadBackup
Jump to navigationJump to search
Line 4: Line 4:
 
# Manually rename the .html file to .php
 
# Manually rename the .html file to .php
 
# Change permissions on the file to 644 (some web hosts will prevent .php from running as 666)
 
# 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.
+
Note that the PHP code may disappear if you try to edit the page after the initial publish, but it is 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 ==
 
== Turn on the Address Book ==

Revision as of 18:40, 18 November 2010

Creating & Generating a "Page" that uses PHP

  1. Create the page and include your PHP code snippet
  2. Export to a .html file like usual
  3. Manually rename the .html file to .php
  4. 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 is 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.