Page 1 of 1

"Full" draft preview

Posted: Sun Jan 02, 2011 5:32 pm
by yellowled
I've thought about this, I've searched the plugin list, and unfortunately, I don't have Garvin's book on me right now. But there really is no way to preview an entry draft within the page context, right? I.e. the only preview we have is the one in the backend generated by the entry editor, there's no way to see an unpublished entry within the full template including stuff preview_iframe.tpl might omit?

(I gotta ask: Would it be possible to add this without too much of a hassle?)

YL

Re: "Full" draft preview

Posted: Sun Jan 02, 2011 5:51 pm
by garvinhicking
Hi!

That's true.

Someone posted this here a few days or weeks earlier. My response was that it's a security thing that drafts are never seeable in the normal blog context. it could be changed of course, but nothing that can be done in a hurry, because it coud have huge implications of done wrong.

I even wouldn't know how to implement it UI-wise, how/where would you want to see the draft, how would you "execute" it?

Regards,
Garvin

Re: "Full" draft preview

Posted: Sun Jan 02, 2011 5:57 pm
by yellowled
garvinhicking wrote:I even wouldn't know how to implement it UI-wise, how/where would you want to see the draft, how would you "execute" it?
Well, I "know" this feature from Contao CMS, which has a button in the backend called "frontend preview". Clicking this button opens a new window or tab displaying the article or page which was edited when clicking the button within the page's or article's context, i.e. the frontend template assigned to it. However, I'm not even sure Contao can do that with unpublished content. I don't think so.

It's no biggie, it just crossed my mind since I have some wild ideas about using individual style(sheet)s for individual entries which might be hard to predict from the backend preview. Then again, it might depend on the admin template used. Might work if the admin template has enough room for the iframe to display the entry 1:1.

YL