At long last, we're moving to forums powered by, well, Movable Type itself. You'll want to bookmark http://forums.movabletype.org/ for future reference, and in the meantime you can view these old forums as a read-only archive of past posts. Thanks for being part of the community!
![]() ![]() |
Sep 28 2005, 10:43 PM
Post
#1
|
|
|
Group: Members Posts: 45 Joined: 8-August 05 Member No.: 32,419 |
I wrote a php script that outputs certain nav information.
For argument, we'll call it nav.php I'd like to display the output of nav.php in the search results. I thought, as mt-search.cgi is a cgi, this is what Server Side Includes (SSI) are for. Within the default search template default.tmpl I placed: QUOTE <!--#include virtual="/nav.php" --> And yes, mt-search.cgi, default.tmpl, and nav.php reside on the same server under the same document root. That did not work. Any suggestions? Would really help alot. Thank you -------------------- |
|
|
|
Oct 2 2005, 04:28 PM
Post
#2
|
|
|
Group: Members Posts: 45 Joined: 8-August 05 Member No.: 32,419 |
I suspect I may be thinking about the .tmpl files the wrong way in the above example.
Because they're essentially static files, they can't exec external scripts. Rather, they simply contain tokens that are replaced with values when the files are parsed by mt-search.cgi mt-search.cgi handles assigning, generating, and/or locating these values. What I need is to somehow introduce a new token:value pair that mt-search.cgi can use.... Anyone with an opinion either way? -------------------- |
|
|
|
Oct 2 2005, 08:07 PM
Post
#3
|
|
|
Group: Members Posts: 6,743 Joined: 23-July 02 From: Christchurch, New Zealand Member No.: 3,469 |
If you are only wanting to include a file (rather than do any calculations or other cool PHP/SSI scripty things), you should be able to use the MTInclude tag to include the file.
CODE <MTInclude file="/full/sever/path/to/nav.php">
|
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 11.25.09 - 12:04 AM |