• 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.
Upgrading user topics to use the form fields rather than bullet fields.

To take advantage of the advanced processing and ease of use of user data in form fields, all existing user topics need converting from " * Field: value" to META:FIELD values.

Can someone please advise whether there is an API in Form or elsewhere that allows me to get the list of fields defined in the UserForm? We need a converter that:

  1. Moves any field defined in UserForm from the bullet list into a META:FIELD %META:FIELD{name="Location" attributes="" title="Location" value=""}%
  2. Adds the UserForm to the user topic %META:FORM{name="UserForm"}%
  3. Locks the home topic Set ALLOWTOPICCHANGE=whatever
  4. Adds %META:PREFERENCE{name="VIEW_TEMPLATE" title="VIEW_TEMPLATE" type="Local" value="UserView"}%

This code, resembling renderForDisplay looks like the way to go... am I right? Has anyone code that will set up the TWiki environment from the command line?

    my $form = $meta->get( 'FORM' );

    return '' unless( $form );
    my $name = $form->{name};

    my @fields = $meta->find( 'FIELD' );
    foreach my $field ( @fields ) {

Thanks. M.


There is no such API, but if it makes sense, then add one.

Regrading to enhancement. CC


Untouched for aeons, no longer relevant.

CC

ItemTemplate
Summary Converting user topics to use the UserForm
ReportedBy MartinCleaver
Codebase

SVN Range 7760
AppliesTo Engine
Component

Priority Enhancement
CurrentState No Action Required
WaitingFor

Checkins

TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2007-06-03 - TWikiUserMapping_CrawfordCurrie
 
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