• 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.

In dakar you can define a VIEW_TEMPLATE that has not TEXT tag in it but only render the view formatting the topic's TWikiForm data. Albeit this all works out fine, in ?raw=on mode the engine still assumes that a TEXT tag is there and generates an empty textarea appended to the end of the html page outside of the closing &lt/html> tag).

The code under consideration is in lib/TWiki/UI/View.pm, line 294. There's a check missing to only generate a textarea if $text is not empty.

The nice thing about that is, that you can completely hide implementational details of your TWikiApplication now as a VIEW_TEMPLATE without a TEXT tag will not display the raw topic anymore, a technique used in the BlogPlugin.

Done in SVN 10075, 10076 -- MD

ItemTemplate
Summary Empty textarea generated in raw mode (VIEW_TEMPLATE issue)
ReportedBy TWiki:Main.MichaelDaum
Codebase 4.0.2, ~twiki4, ~develop
SVN Range Thu, 04 May 2006 build 10074
AppliesTo Engine
Component

Priority Low
CurrentState Closed
WaitingFor

Checkins 10075 10076
TargetRelease patch
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r6 - 2006-06-25 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback