New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
This question about Upgrading from TWiki to Foswiki: Closed unanswered

Why are newly created forms destination different in Foswiki than TWiki?

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

QuestionForm edit

Subject Upgrading from TWiki to Foswiki
Version Foswiki 1.0.6
Status Closed unanswered
Topic revision: r4 - 26 Sep 2009, OliverKrueger - This page was cached on 23 Mar 2018 - 05:33.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License