Page 1 of 1

Square template doesn't preview?

Posted: Thu Mar 22, 2007 3:49 pm
by sjml
I'm trying to set up the square template on my s9y install, but for some reason when I'm using it I can't seem to get previews while making or editing an entry. When I hit the preview button, I'll see a quick flash of the preview, and then it disappears, and "Serendipity is now creating the preview of your entry..." is in it's place.

A similar thing happens when I go to make a post -- the message about making XML-RPC calls stays up forever, even after the post has been successfully submitted. That doesn't happen when I have another theme on, only with square.

I'm a little new to Serendipity -- what's the best way to go about troubleshooting a problem like this?

Re: Square template doesn't preview?

Posted: Thu Mar 22, 2007 4:02 pm
by garvinhicking
Hi!

Where did you download the square template from?

It might be that something is wrong with the preview_iframe.tpl file, this one is reponsible for displaying "frontend" content in the backend...

Best regards,
Garvin

Posted: Thu Mar 22, 2007 4:11 pm
by sjml
Hi Garvin; thanks for the quick reply.

I downloaded through Spartacus. Just to make sure nothing went wrong, I just deleted it and my package_template.xml file and re-downloaded. It looks like there is no preview_iframe.tpl file in there. Is that typical for a theme, or is something missing from this one?

Posted: Thu Mar 22, 2007 5:52 pm
by d_cee
Hi

I don't usually include a preview_iframe.tpl in my templates as it already exists in the default template directory.

However, with the square template, as there is no div#mainpane the preview can collapse so I've amended the code in the preview_iframe.tpl for 'square' so that it will work.

You can download it from my themes site. You should decompress it and upload it to your templates/square/ directory.

HTH

Dave

Posted: Thu Mar 22, 2007 6:01 pm
by sjml
Hi Dave -- thanks for the response. I eventually got it to work by copying over the default preview_iframe.tpl, like you say. Just something for me to learn! :-)

Posted: Fri Mar 23, 2007 9:37 am
by garvinhicking
(Also committed to spartacus now)

Regards,
Garvin

Posted: Fri Mar 23, 2007 10:49 am
by d_cee
Thanks Garvin

I was going to mail it you this morning :-)

Dave