Page 1 of 1

Template screws up preview

Posted: Wed Nov 29, 2006 4:31 pm
by yellowled
Hey guys,

once again something which is really hard to describe, but I'll try :)

I'm working on a new template, which is pretty much in testing mode right now. So I'm writing test entries in my development blog, and somehow encounter the following: I hit 'preview', I see a nice green message saying 'Serendipity is now creating the preview of your entry...', see that box which is supposed to show me the preview of my test entry ... and then, this box shrinks, I can't read the preview at all.

This does not happen with other themes, so obviously something in my theme screws up the preview - but what part of it?

Basically, this is a css only template, the basic structure is like this:

#mainpane (
#serendipity_banner
#navbar
#serendipityLeftSideBar
#content
#serendipityRightSideBar
#footer )

Both sidebars and the content have 'float: left;', #footer has a 'clear:both;', and #mainpane is wrapped around everything else to fix the width of the blog's content.

Any hints on where to start looking? Need more information?

YL

Posted: Wed Nov 29, 2006 7:47 pm
by judebert
I seem to recall that non-table layouts have problems like this. Have you tried assigning a height to it? Even 1% might work.

Posted: Wed Nov 29, 2006 8:18 pm
by yellowled
judebert wrote:I seem to recall that non-table layouts have problems like this. Have you tried assigning a height to it? Even 1% might work.
Nope, I'll try that. But: assigning a height to what?

You might be right about the tableless layouts, at least I can't remember experiencing something like this with a table-based layout. On the other hand I recall similar problems with other tableless layouts.

YL

Posted: Wed Nov 29, 2006 8:23 pm
by carl_galloway
You're probably going to have to create your own preview_iframe.tpl to make it work properly. check out the 1024px template for an example, or even andreas08. They both had exactly the same problem as you describe but with the new preview file it fixed the problem. Of course you'll have to use the code/styles that you have in your own index.tpl and entries.tpl

Posted: Wed Nov 29, 2006 8:50 pm
by yellowled
carl_galloway wrote:You're probably going to have to create your own preview_iframe.tpl to make it work properly.
Jeez, Galloway, you better hurry up gettin' yourself over here to Germany so little old me can buy you a (insert favourite beverage here) or two ... :wink:

(Which is of course my way of saying: 'Thanks, that did the trick' :))

YL

Posted: Wed Nov 29, 2006 8:53 pm
by carl_galloway
no worries mate!