Help - Search - Members - Calendar
Full Version: background image and code
Movable Type Community Forum > Additional Resources > Tips and Tricks
egoexmachina
Hi everyone. I just installed MT and wanted to ask a question:
Is it possible to add html code to each different post? I want to have only one post per page, and each post would display a background ( color or image) and one or several pictures or texts. I would like to know if this is possible and how it would go regarding code and all. I´m no good with html and I would use dreamweaver to create the code for each post, and then paste it in mt and upload it, is this a good way to do it?Thanx in advance
kadyellebee
Yes, HTML can be used in the Entries... And the way you are explaining sounds workable. smile.gif

Depending on how you want to select the background color/image, you might be able to add something into your template to do it for you -- if its by topic/category or even a random choice, that might be doable with a plugin. So if you want us to point you towards a thread to help you out, give us a few details smile.gif

Kristine
egoexmachina
Thanks, I will try that, then.
What I want to do is sort of a photoblog, but each post will be a presentation of pictures, flash animations or plain text. I will not have a library of backgrounds to be used in several posts, each post will have its own composition, contents and background.
Regarding code, I wanted to know if I shoul paste the WHOLE html code in my post. Or maybe disregard all tags regarding page properties, etc. Where do I start and finish?
Thanx again.
kadyellebee
Okay, I get it now smile.gif
You'll want to paste only the content of your presentation into the Entry screen -- don't include the html, head, or body containers. The template already contains that info and MT will be putting your presentation "inside" the template when its posted. smile.gif

Kristine
egoexmachina
but what if one of my posts consists of a red background, a 6x6 table, 6 images and a text header? If I create that page in an html editor, Should I post the whole code or just maybe from to ?

Maybe I am not explaining myself too well. I should emphasize that each post is different. The "blog" template is very simple, just a side menu, and the rest of the page would be the post. The post will have its own contents and its own background, different from the page that contains it (the side menu in this case). and different from other posts. Of course, i´m only showing one post per page. Thanks for your answers and your patience! smile.gif
kadyellebee
Well, since you want the color to be different than the sidebar, rather than making it have a body tag that defines the background, you could put a
CODE
<div style="background:#d30000;">
all of the post info - text header, 6x6 table, 6 images
</div>

around your content.

That would give you a different color background for your post than the rest of the side menu.

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