May 09, 2003
MT Includes
I've just discovered the beauty that is the MTInclude tag. I've transfered my side content with the calender, search, links and stuff into a Module Template and then including it in every other template that needs it. I didn't know about this before and just stumbled accross it. This is very cool. It allows you to include blocks of code like you would with a language like PHP or the like and it will parse the MT tags in that module (I don't know if PHP would do that). Cool Stuff.
Trackback Pings
TrackBack URL for this entry:
http://jeff.hume.ca/cgi-bin/mt-tbk.cgi/14
Comments
PHP affords you the ability to require, which you can place your code, say a little calander app, in a single file, and [?php require ("mycalapp.php"); ?] where you want it...
But yeh, that they provided it as part of the API in MT is ausome.
Posted by: Mike at May 9, 2003 04:07 PM
the nice thing about using php for includes (which i do for the links on my main page) is that you don't have to rebuild your site to see the changes. It just gets included as soon as you change it. :)
But, it doesn't parse MT tags. I thought I tried MTInclude and couldn't get it to parse the MT tags, I'll have to try it again...
Posted by: Ted at May 10, 2003 01:51 PM