Help - Search - Members - Calendar
Full Version: #include virtual
Movable Type Community Forum > Additional Resources > Tips and Tricks
YP Geek
I've got my CSS set to format the plain text that I have output to:

http://www.andythegeek.com/votd.html

...via a template on my blog http://www.andythegeek.com/votd/

And I set my Main Index to include this file via:

CODE
<div class="side">
<!--#include virtual="./votd.html" -->
</div>


But it only gives me a blank box.

What gives? Anyone?
LisaJill
What is the name of the main file that is calling the include? Does it end in .shtml?

Most servers are set to only parse files of type .shtml for SSI includes. You can modify the httpd.conf or something to parse .html for ssi, but I am not expert in that area. A google search should turn up something in that department if you do not wish to rename your pages from .html to .shtml

Also, I do not know if you have a specific reason to choose shtml includes over php includes; but if there isn't one I'd highly suggest going with php over shtml, you'll find that a lot of the movable type solutions are done in php and it will give you a lot more flexiblity in the future.
YP Geek
Yes, that was the problem. I had to change my main index to a .shtml extension.

Thank you!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.