Help - Search - Members - Calendar
Full Version: Help with SSI Include!
Movable Type Community Forum > Additional Resources > Tips and Tricks
pookieguy
I need some help here guys. This is driving me insane! ohmy.gif
Spent too much time troubleshooting!

I'm using SSI to include MT in my sites homepage.

Actual blog:

http://www.extrememhz.com/mtblog

My site without blog:

http://www.extrememhz.com

My site with the blog:

http://www.extrememhz.com/BETA


I almost got the include correct except for ONE annoying problem!

If you look at the BETA site, you'll see that the blog data is correctly shown in the center of the page but the background color of the page is WHITE instead of the correct color, BLACK.

Why would the main MovableType index file that I have included using SSI over-ride the background color of my original .shtml homepage?

Man I hope someone can help with this...
Thanks in advance
nammer
Hm. See, I look at the main column of your existing site and it looks like the background should be white, so the Beta site looks okay to me.

My suggestion? Create a new Main index for your blog and output it as a txt file - then use SSI to include that in your main page and style it there - that might resolve the conflict you're seeing.

Does that help?

Donna
pookieguy
Thanks for reply.

I just tried that and think I screwed everything up. sad.gif

Anyways..
Doesn't the Main Index file in MT ned to be "index.shtml" or index.html?

I tried creating a new main index as "index.txt" but that didn't work at all.

Damn...this is frusterating.

A text file would definitely be nice.
pookieguy
The problem is on this code on the Main index file:

CODE
<link rel="stylesheet" href="<$MTBlogURL$>styles-site.css" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="RSS" href="<$MTBlogURL$>index.rdf" />
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="<$MTBlogURL$>rsd.xml" />


So this tells me it's the stylesheet that is causing this. So what I have done is the following:

I went into the stylesheet and at the very beginning of the code you have the following:

CODE
body {
 margin:0px 0px 20px 0px;
 background:#FFF;  
 }


If I change that "FFF" to "000" is solves the problem and the homepage has the black background, however...
The main blog page would now have a black background on black text. Not good! heh

Fixes it, yes but will screw up the color on the blog page.

??
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.