• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6039: Preview does not respect VIEW_TEMPLATE (trunk only)

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Enhancement New   n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


Don't show the "uggly truth" in preview mode. Instead, wrap the data into the same VIEW_TEMPLATE that the user normally sees. The bug in itself is not sever, only uggly. But as it is a fundamental flaw, I make it urgent to get it fixed soon.

But how do we mix in the normal preview gear into the VIEW_TEMPLATE? Do we need a PREVIEW_TEMPLATE variable?

Dynamically rendering a preview similar to view (e.g. using SEARCH, FORMFIELD, etc) is a problem in itself because it does its calculations on the base of the data already committed to the store. However, the preview holds the new data in a hidden form which is not committed yet and thus is not accessible to the TWikiApplication inside a preview. Here it is your pandora's box.

This is not fully solvable other than ripping out the preview button, afaics.

-- TWiki:Main/MichaelDaum - 01 Oct 2008

I'd rather that Preview used VIEW_TEMPLATE - otherwise there's a good chance of things getting out of sync, and the users not seeing it fo what they mean.

-- TWiki:Main.SvenDowideit - 05 Oct 2008

hmmm.... in preview does user expect exact look/feel and application (search/meta data) results to match what user see after committing (save) the data? I don't think so - VIEW_TEMPLATE is better...i think its ok to have some functionality missing in preview.

-- TWiki:Main.SopanShewale - 24 Nov 2009

Summary Preview does not respect VIEW_TEMPLATE (trunk only)
ReportedBy TWiki:Main.MichaelDaum
Codebase ~twiki4
SVN Range TWiki-5.0.0, Tue, 23 Sep 2008, build 17539
AppliesTo Engine

Priority Enhancement
CurrentState New


TargetRelease n/a

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2010-03-15 - SopanShewale
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback