Tags:
create new tag
view all tags

SID-00992: Publishing form data from one TWiki to another

Status: Answered Answered TWiki version: 5.0.0 Perl version:
Category: CategoryForms Server OS: Last update: 15 years ago

I need to figure out how to 'publish' a TWiki page from one TWiki site to another and retain the data in the form fields of that TWiki page.

In Sandbox I have my mock up of what I've built at my company: http://twiki.org/cgi-bin/view/Sandbox/ChrisVanDorenSandbox

I have 3 pages: KnownError, KnownErrorTemplate, & KnownErrorForm.

I'm using the KnownError page to both create new pages using the template and display all the related records, much like the TWikiInstallation page. It works great, but we are experiencing problems when we publish these pages from our 'Draft' TWiki to our 'Public' TWiki. What I think is happening is that the KnownErrorForm in Draft, along with the data in its fields, is dropped from the page when it is published so that when we 're-add' the KnownErrorForm in Public there is no data existing to populate the fields.

What I need is a way when a given KnownError<GMTTimeStamp> page is published from ../Draft/ to .../Public it:

  1. Automatically switches the form from the .../Draft/KnownErrorForm to the .../Public/KnownErrorForm
  2. Retains the field values from the Draft Twiki.

Is there an easy way to do that?

Thanks -Chris

-- ChrisVanDoren - 2010-10-06

Discussion and Answer

How do you publish? Are you talking about completely separate TWiki installations or different TWiki webs on the same TWiki?

Make sure that the KnownErrorForm also exists in the Public web.

-- PeterThoeny - 2010-10-06

They are both Webs of the same TWiki and we use perl scripts to publish from Draft to Public that we call twikicopypage or twikiget.

And yes, we published the KnownErrorForm to Public before we started publishing the individual records. However, when we published those pages the form was dropped and had to be re-added all the same.

-- ChrisVanDoren - 2010-10-06

Nevermind... I just needed to keep asking questions of our Twiki Admin who does the publishing until he relized there was a switch in the perlscript to get it to copy the form data as well.

But thank you for taking the time.

Chris

-- ChrisVanDoren - 2010-10-06

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title Publishing form data from one TWiki to another
SupportCategory CategoryForms
TWiki version 5.0.0
Server OS

Web server

Perl version

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2010-10-06 - ChrisVanDoren
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.