Preview node not published Options
elisa.frati
Posted: Tuesday, October 23, 2007 12:06:32 PM
Rank: Newbie

Joined: 10/23/2007
Posts: 4
Hi All!

Does anyone know if it is possible do the preview of a node not published in the umbraco admin? :hmm:

Thanks.
drobar
Posted: Tuesday, October 23, 2007 2:15:21 PM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,831
Location: MA, USA
Yes, you can! Just click the "preview" icon in the toolbar.

Be aware that there is a difference between "save" and "save and publish".

"Save" saves your changes to the database so you don't loose them, but does NOT make those changes visible to website visitors, who will continue to see the previously published version of the page. This is very handy for making changes to a page but waiting to make it visible to the world. Or, if you're in the middle of something and get called away... save your work but don't publish it.

"Save and Publish" will not only save your work, but make it the version that website visitors will see when they ask for the page.


When you click the "preview" icon, you get the latest "saved" version of the page, which might also be the published version.


I hope this helps.

cheers,
doug.

MVP 2007-2009 - Percipient Studios
elisa.frati
Posted: Tuesday, October 23, 2007 2:51:20 PM
Rank: Newbie

Joined: 10/23/2007
Posts: 4
Thanks for the reply but my problem is with a node never published, only saved.
So the latest version of the page isn't in the file umbraco's cache but only in the database.

The file xslt called by the template of that node, use the $currentPage to cicle it and his children in that file but my node is not present!

You know how can i do the preview in this case?

drobar
Posted: Tuesday, October 23, 2007 3:08:11 PM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,831
Location: MA, USA
Ahhh. Yes, you're right that some macros can't render properly in a preview of an unpublished page since there isn't any context in the usual sense.

cheers,
doug.

MVP 2007-2009 - Percipient Studios
kutedawako
Posted: Wednesday, October 31, 2007 2:55:16 AM
Rank: Devotee

Joined: 9/12/2007
Posts: 58
Location: Honoluu, HI
Is there a way to preview items that are not yet published on a page that is using xslt macros?
drobar
Posted: Wednesday, October 31, 2007 3:20:39 AM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,831
Location: MA, USA
I don't think so. As I understand it, Preview uses the cached data for its "context" and unpublished items are not yet in the cache, only in the database. So preview won't pick up unpublished items.

cheers,
doug.

MVP 2007-2009 - Percipient Studios
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.