U4-793 - MVC Support - Preview functionality

Created by Shannon Deminick 10 Sep 2012, 20:36:20 Updated by Meixger 11 Jul 2013, 07:00:30

Relates to: U4-2264

Is required for: U4-1614

With MVC support we will need to implement a preview functionality like we have in webforms though will require a custom implementation because preview is currently handled by a lot of webforms classes.


Meixger 15 Oct 2012, 07:47:52

just copy N2CMS or Sitefinity preview behavior!


Shannon Deminick 05 Mar 2013, 20:06:24

For now lets just get the normal preview working like we have with webforms so at least you can preview at all. Then lets look at enhancing preview. Maybe make a different feature request for something like this so we don't lose the idea. For this task I'm just going to get preview working.

Meixger 05 Mar 2013, 20:16:14

Ok. I will make a feature request. I have sites with more than 10.000 pages find it quite difficult to find a page with the content tree only.

Shannon Deminick 05 Mar 2013, 20:19:27

I understand completely. There's many UI changes coming in Umbraco 7 (aka project Belle) and the plan is to make using the back office much nicer. Searching will also be enhanced so that should help too. Definitely log this feature request and we'll review it and determine the optimal implementation.

Robert 12 Mar 2013, 20:15:40

Good stuff Shannon. For the immediate future users need to at least be able to preview image changes and rich text - that is kind of a must. In the future preview needs a comprehensive overhaul so you can actually preview all unpublished content at once.

Shannon Deminick 12 Mar 2013, 20:17:51

@Robert, that is how it works, it creates a temporary xml cache file that is used that contains all unpublished content, its been like that for a real long time... unless I'm missing something ?

Robert 01 May 2013, 21:51:51

So are you saying if I have a page which lists news items and I preview this page it will show unpublished news items? Surely this would depend on how you load those child nodes. If I am using uQuery to get all news nodes that is not going to know anything about preview mode right?

Shannon Deminick 02 May 2013, 13:05:34

@Robert, I guess this depends on how uQuery gets it's XML content. TBH I'm not sure. If you can test and if it doesn't work then please log a bug and we'll have a look at the uQuery source.

Robert 03 May 2013, 01:27:52

I will do some tests on this. I just realised that we are often using lucene for rendering lists so I guess we will have to do the 'preview' ourselves for those pages.

Stephan 24 May 2013, 11:51:57

@Shannon: re. your comment on march 12, yes, you're missing something ;-) The preview XML is a clone of the published XML where the node being previewed, and its parent, and any child, have been updated with their own preview XML fragment -- but siblings of that node, and the rest of the tree, still retain the original, published XML, so unless you preview the top-level node you won't see all nodes as "preview".

Priority: Normal

Type: Feature (planned)

State: Fixed

Assignee: Shannon Deminick

Difficulty: Normal

Category: Architecture

Backwards Compatible: False

Fix Submitted:

Affected versions:

Due in version: 6.1.0


Story Points: