SID-00992: Publishing form data from one TWiki to another
| Status: |
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:
- Automatically switches the form from the .../Draft/KnownErrorForm to the .../Public/KnownErrorForm
- 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
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.