This question about Upgrading from TWiki to Foswiki: Closed unanswered
I am using Foswiki 1.0.6 but it was not an option in the pull down list.
I developed forms to create topics in TWiki where the action defined the web and the topic would be created in the named web. The basic syntax looked like this (I used my own session variables for the web):
<form name="new" id="submitForm"
action="%SCRIPTURLPATH{"edit"}%/%SESSION_VARIABLE{"theWeb"}% /">
<input type="hidden" name="topic" value=" SdfFolderAUTOINC001" size="30" />
This week we made the switchover from TWiki to Foswiki. In Foswiki, I noticed all my topics were being created in the Main web vs. the web I had defined. To rectify this, we had to include the Web in the topic name value such as this:
<form name="new" id="submitForm"
action="%SCRIPTURLPATH{"edit"}%/%SESSION_VARIABLE{"theWeb"}% /">
<input type="hidden" name="topic" value="%SESSION_VARIABLE{"theWeb"}%/SdfFolderAUTOINC001" size="30" />
Do we know what caused this change in the TWiki to Foswiki transition? Is there some preference value that I can set to have the old behavior?
--
JoeMarandola - 30 Jun 2009
The obvious thing that leaps out at me is the use of %SESSION_VARIABLE{"theWeb"}%. If this session variable isn't set, you'll end up with a URL that parses to the Main web, which is the default web if no other web is specified. So without knowing the value you have assigned to this session variable, it's hard to advise.
Can you provide an example that doesn't involve the use of the SESSION_VARIABLE?
--
CrawfordCurrie - 16 Jul 2009
Closing it unanswered due to inactivity. Please re-open it, if necessary.
--
OliverKrueger - 26 Sep 2009