|
|
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.
|
|
 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
|
|
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?
|
|
 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
|
|
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?
|
|
 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
|
|
|
Guest |