When I published my sites powered by Movable Type statically, I can easily include a PHP syntax in the body or extended entry field. Using this kind of method, I can easily put a certain file to be displayed in a certain post (pages or regular posts).
For example, in my contact page. I just create a single post and in the body field, I just put something like <?php include("/path/to/contact-form.php"); ?>. So, when I need to modify the contact form, I only need to edit the contact-form.php file.
But, when I tried to switch to dynamic publishing, it does not work. Luckily, Brad Choate gave a solution. Thanks Brad! He helped me few months ago.
Continue reading »