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

Item6301: TWiki application in subweb incorrectly looks for template topic in parent web

Item Form Data

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

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

Assume a web, Bagelry and a subweb, Bagelry/Testing.

I have a topic, Bagelry/Testing.CreateDoc that contains an HTML form:

<form name="Create" action="%SCRIPTURLPATH%/edit%SCRIPTSUFFIX%/%INTURLENCODE{"%WEB%"}%?" " >
  <table><tr>
  <td>Enter topic name: </td>
   <td>
     <input type="text" name="topic" value="EnterDocName" size="50" />
   </td><td>
     <input type="hidden" name="templatetopic" value="NewDocTemplate" />
     <input type="hidden" name="onlynewtopic"  value="on" />
     <input type="submit" value="Create Page" />
    </td>
  </tr></table>

This should create a new topic in Bagelry/Testing, using the template topic Bagelry/Testing.NewDochTemplate

Instead, I get an error from Bagelry

http://localhost/vtwiki/bin/oops/Bagelry/NewDocTemplate?template=oopsaccessdenied;def=no_such_topic;param1=templatetopic

The workaround is to be very specific

     <input type="hidden" name="templatetopic" value="Bagelry/Testing.NewDocTemplate" />

However, this should not be necessary. TWiki should always look in the current web (and we're in Bagelry/Testing.)

-- TWiki:Main/VickiBrown - 14 Aug 2009

ItemTemplate
Summary TWiki application in subweb incorrectly looks for template topic in parent web
ReportedBy TWiki:Main.VickiBrown
Codebase 4.2.4
SVN Range TWiki-5.0.0, Sat, 18 Apr 2009, build 18024
AppliesTo Engine
Component

Priority Normal
CurrentState New
WaitingFor

Checkins

TargetRelease n/a
ReleasedIn

Topic revision: r1 - 2009-08-14 - VickiBrown
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback