Page 1 of 1
Problems with connections-port theme
Posted: Fri Dec 23, 2005 10:39 pm
by Rembrandt
Previewing an entry in the backend only shows a very small part of the post. Using the connections-theme, installed via spartacus in a nightly s9y.
Any suggestions?
Screenshot:
tia,
Rembrandt
Posted: Sat Dec 24, 2005 3:26 pm
by Rembrandt
Update:
After disabling gzip-compression the preview works as expected. Seems like another "magic gzip-compression error".
so long...
Rembrandt
uh oh
Posted: Sat Dec 24, 2005 4:44 pm
by carl_galloway
Hi rembrandt,
I'm a bit confused, what does magic gzip-compression error mean? Is there something I should be fixing within the theme?
Perhaps one of the developers could explain, does a frontend theme make any changes to the admin theme. I was under the impression that the admin styles were completely separate, and that even basic html tags were styled in the admin stylesheet. Is there ever a time when the admin page would be changed by themes we develop for our blogs?
Please help, I don't want to create anything that causes problems for other users.
Carl
Re: uh oh
Posted: Mon Dec 26, 2005 8:50 pm
by garvinhicking
Hi!
carl_galloway wrote:
Perhaps one of the developers could explain, does a frontend theme make any changes to the admin theme. I was under the impression that the admin styles were completely separate, and that even basic html tags were styled in the admin stylesheet. Is there ever a time when the admin page would be changed by themes we develop for our blogs?
Actually, the preview is a small "Gotcha" issue.
The s9y admin backend creates a iframe for previewing. For that, it builds a HTML framework where it applies the usual Style.css of your template.
The HTML that is built, is based on the default html structure:
Code: Select all
<head>
<title>Serendipity Administration Suite</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="/cvs/serendipity/trunk/serendipity.css.php" />
<script type="text/javascript">
window.onload = function() {
parent.document.getElementById('serendipity_iframe').style.height = document.getElementById('mainpane').offsetHeight
+ parseInt(document.getElementById('mainpane').style.marginTop)
+ parseInt(document.getElementById('mainpane').style.marginBottom)
+ 'px';
parent.document.getElementById('serendipity_iframe').scrolling = 'no';
parent.document.getElementById('serendipity_iframe').style.border = 0;
}
</script>
</head>
<body style="padding: 0px; margin: 0px;">
<div id="mainpane" style="padding: 0px; margin: 5px auto 5px auto; width: 98%;">
<div id="content" style="padding: 5px; margin: 0px;">
<div style="float: left; height: 225px"></div>
<!-- ENTRIES START : entries.tpl is parsed here-->
<!-- ENTRIES END --><br style="clear: both" /> </div>
</div>
</body>
So the CSS would need to implement "mainpane", "content" and so on properly.
Thinking about this, the iframe should by SMARTYfied as well. I'll do so in the next couple of days!
Regards,
Garvin
Re: uh oh
Posted: Mon Dec 26, 2005 9:33 pm
by garvinhicking
I've just added a "preview_iframe.tpl" file to the 1.0-alpha1 nightly directory, where this HTML code can be customized!
Best regards,
Garvin