Help - Search - Members - Calendar
Full Version: Preview Items in Draft State?
Movable Type Community Forum > Additional Resources > Tips and Tricks
Deane
I have any number of entries in Draft status.  How can these be previewed as fully-rendered pages without being "published" to, say, the front page?

I have many instances where I want so-and-so to go take a look at something I'm working on.  I want them to see this in the form it would be ultimately published in, but I don't want the link hitting the front page.

I realize that if it rendered to an Individual Archive, people could get to it by entering the exact URL, but I'm not terribly worried about this.  Likewise about search engines indexing it.

Deane
girlie
Don't know if this would work for you, but I have a private journal blog that is identical to my public journal blog, with the exception of being published to a private directory.

When I want to view a public entry before publishing it, I just paste it into the private blog, publish it there, and preview that way.
Deane
Come to think of it, I could probably use that new mt-view.cgi script to view Draft entries dynamically.  In version 2.62 (which I'm running) it will show Draft items (this was removed in 2.63).

But what's the querystring syntax?  What querystring parameters does it take?  It's still experimental, so it's completely undocumented, as far as I know.

Deane
almuhajabah
mt-view.cgi/1
displays Main Index for blog with blog_id 1

mt-view.cgi/1/entry/111
displays Individual Archive page for entry with entry_id 111 in blog 1

mt-view.cgi/1/section/2
displays Category Archive page for category with category_id 2 in blog 1

I'm still trying to figure out the proper syntax to bring up date-based archives, because that's supported too. I'm no Perl whiz but I managed to extract this much from the Viewer.pm module which is at

(MT home directory)/lib/MT/App/Viewer.pm

Unfortunately, my archive pages have PHP code on them which can't be parsed when the page is displayed by a CGI so when I bring up my entries with mt-view.cgi I get to see the PHP code in all its glory (or whatever)  ???
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.