I've designed my site so that the Movable Type output is in a frame on the right-hand side of the page. So far, I've done this by editing the templates (that I've configured to be named *.shtml) to do this sort of thing:
CODE
<div class="left">Non-MT content</div>
<div class="right">MT content</div>
<div class="right">MT content</div>
I add the non-MT content through the use of server side includes that point to a text file containing the code I want - that way I only need to modify a single file and the whole site is updated.
This all works just fine - except for the search template because it's called from the mt-search.cgi script (which uses default.tmpl), rather than a *.shtml file.
When I put something like:
<!--#include virtual="file.txt" -->
into the appropriate location in default.tmpl, mt-search.cgi doesn't parse it but, rather, simply outputs it as is. This does me no good at all. (I believe it's a limitation of Apache, and most other Web servers, at present.)
I've tried thinking of various alternatives here but don't know enough about either Apache or MT to get this to work out properly. As far as I can tell I need one of two things to happen:
1. Apache to parse the SSI directive that's being returned to the CGI script prior to sending the data to the client.
2. MT to use default.tmpl to write out a *.shtml file which would then be pointed to as the target for the browser to load. (Rather than just the CGI output.)
Until I can resolve this, I have everything formatted just as I want, except that the only content that's produced is that from MT's search - while the frame at the left of the page (which should show the content of the "file.txt" file) remains blank...
You can see this problem "live" if you go to my personal page and try to do a search of my entries (try using "blog" as the search term).