Ignore:
Timestamp:
12/12/08 22:33:29 (3 years ago)
Author:
ArthurClemens
Message:

Item312: updated documentation and added auto-copy buttons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/TopicUserMappingContrib/data/System/UserForm.txt

    r1022 r1304  
    22---+ User Form 
    33 
    4 __Note:__ This is a maintenance topic, used by the Wiki administrator. 
     4This is a maintenance topic, used by the Wiki administrator. 
    55 
    6 This form defines the form of the home pages of registered users listed 
    7 in %USERSWEB%.%WIKIUSERSTOPIC%. *Do not edit this topic* - if you want to customise the 
    8 user form, then: 
    9    1 Take a copy of this topic and save it to %USERSWEB%.<nop>UserForm 
    10    1 Customise %USERSWEB%.<nop>UserForm 
    11    1 Take a copy of NewUserTemplate and save it to %USERSWEB%.<nop>NewUserTemplate 
    12    1 Modify %USERSWEB%.<nop>NewUserTemplate and change the form to select your new user form. 
    13  
     6---++ Data form definition of user topics 
     7<!-- 
     8Before changing this form, please read the guidelines below at [[%SYSTEMWEB%.UserForm#CustomForm][Customizing the User Form]] 
     9--> 
    1410|*Name*  |*Type*  |*Size*  |*Values*  |*Tooltip message*  |*Attributes*  | 
    1511| <nop>FirstName | text | 40 | | | | 
     
    2925| Comment | textarea | 50x6 | | | | 
    3026 
    31 __%X% Note:__ Please keep the %SYSTEMWEB%.UserRegistration form and this form definition in sync. When you update this form you need to edit/save the %SYSTEMWEB%.NewUserTemplate topic. This ensures that the fields are in the right order. 
     27#CustomForm 
     28---++ Customizing the User Form 
     29If you want to change the user form, you would first want to make a copy of this form to the <nop>%USERSWEB% Web. That ensures your changes stay intact after a Foswiki update. 
     30 
     31To make a copy, follow these steps: 
     32 
     33   * By hand: 
     34      1 Take a copy of this topic and save it to %IF{"istopic '%USERSWEB%.UserForm'" then="[[%USERSWEB%.UserForm]]" else="%USERSWEB%.<nop>UserForm"}% 
     35      1 When editing your new !UserForm topic, change the entries in the data form definition. You may remove all explanation around the table. 
     36   * Automatically: %BR% 
     37   <form action="%SCRIPTURL{manage}%/%WEB%/"><input type="hidden" name="topic" value="%USERSWEB%.UserForm" ><input type="submit" class="foswikiButton" value="Make a copy for me now" /><input type="hidden" name="action" value="create" /><input type="hidden" name="onlynewtopic" value="on" /><input type="hidden" name="templatetopic" value="%WEB%.%TOPIC%" /><input type="hidden" name="section" value="definition" /><input type="hidden" name="redirectto" value="%WEB%.%TOPIC%" /><input type="hidden" name="nowysiwyg" value="1" /></form> %BR% 
     38   <span class="foswikiGrayText">you will return here after saving</span> 
     39 
     40%X% Note that your form changes will only be visible in a user topic after it has been saved. %BR% 
     41%X% Please keep the %SYSTEMWEB%.UserRegistration form and this form definition in sync. When you update this form you need to edit/save the %SYSTEMWEB%.NewUserTemplate topic. This ensures that the fields are in the right order. 
     42 
     43---+++ A form for new users 
     44To use your new user form for new (registering) users, create a copy of %IF{"istopic '%USERSWEB%.NewUserTemplate'" then="[[%USERSWEB%.NewUserTemplate]]" else="%USERSWEB%.<nop>NewUserTemplate"}%. 
     45 
     46   * By hand: 
     47      1 Take a copy of [[%SYSTEMWEB%.NewUserTemplate]] and save it to %IF{"istopic '%USERSWEB%.NewUserTemplate'" then="[[%USERSWEB%.NewUserTemplate]]" else="%USERSWEB%.<nop>NewUserTemplate"}% 
     48      1 Set the topic form to your custom %IF{"istopic '%USERSWEB%.UserForm'" then="%USERSWEB%.UserForm" else="%USERSWEB%.<nop>UserForm"}% topic 
     49    
     50   * Automatically: %BR% 
     51   <form action="%SCRIPTURL{manage}%/%WEB%/"><input type="hidden" name="topic" value="%USERSWEB%.NewUserTemplate" ><input type="submit" class="foswikiButton" value="Make a copy for me now" /><input type="hidden" name="action" value="create" /><input type="hidden" name="onlynewtopic" value="on" /><input type="hidden" name="templatetopic" value="%SYSTEMWEB%.NewUserTemplate" /><input type="hidden" name="formtemplate" value="%USERSWEB%.UserForm" /><input type="hidden" name="redirectto" value="%WEB%.%TOPIC%" /><input type="hidden" name="nowysiwyg" value="1" /></form> %BR% 
     52   <span class="foswikiGrayText">you will return here after saving</span> 
     53 
     54--- 
    3255 
    3356__Related topics:__ %USERSWEB%.%WIKIUSERSTOPIC%, %USERSWEB%.UserViewTemplate, %SYSTEMWEB%.NewUserTemplate, %USERSWEB%.UserHomepageHeader, %SYSTEMWEB%.DataForms, %SYSTEMWEB%.UserRegistration 
Note: See TracChangeset for help on using the changeset viewer.