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

... the same way this can be done for VIEW_TEMPLATE.

So a topic with a VIEW_TEMPLATE setting will use that view template. If you append a ?template=view to the url things can be overridden though.

This feature is missing for EDIT_TEMPLATE and should be added for consistency using this patch:

--- lib/TWiki/UI/Edit.pm        (revision 11640)
+++ lib/TWiki/UI/Edit.pm        (working copy)
@@ -196,7 +196,8 @@
     my $templateWeb = $webName;

     # Get edit template, standard or a different skin
-    my $template = $session->{prefs}->getPreferencesValue('EDIT_TEMPLATE') ||
+    my $template = $query->param( 'template' ) ||
+       $session->{prefs}->getPreferencesValue('EDIT_TEMPLATE') ||
         $templateName;
     $tmpl =
       $session->{templates}->readTemplate( $template.$editaction, $skin );

4.1.0 released

KJL

ItemTemplate
Summary EDIT_TEMPLATE topic preference can't be overriden using url params
ReportedBy TWiki:Main.MichaelDaum
Codebase

SVN Range TWiki-4.1, Sat, 23 Sep 2006, build 11571
AppliesTo Engine
Component

Priority Normal
CurrentState Closed
WaitingFor

Checkins 11654
TargetRelease minor
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r6 - 2007-01-16 - KennethLavrsen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback