Difference: DisplayUserDetails ( vs. 1)

Revision 131 Oct 2012 - TomCraneAdmin

Line: 1 to 1
Added:
>
>

<--

This TOPIC is included from each users home topic page (eg. http://hostname/twiki/bin/view/JoeBloggs) and displays their account details using the meta-data stored in their home topic file. For this reason the ?raw=debug URL parameter must not be permitted for non-authenticated users because it displays the topic's meta-data. Which item are displayed depends on whether an authenticated user is logged on and if so who.

The motivation for producing this feature was to replace the default TWiki forms based approach which produces a table displaying the same information in the users' home topic using the meta-data record,

META FORM name="Public.UserForm"

but permits no control over which items (eg. the user's loginname) are displayed to (eg. to non-authenticated users).

How to control which items in the table below are visible. ====================================================== (1) Items with the condition "0=0" are visible to everyone on the Internet who has access to this page. (2) Items with the condition "context authenticated" are only visible to registered & logged-on TWiki users. (3) Items with the condition "'Public.TWikiGuest' ingroup 'TWikiAdminGroup' are only visible to the TWiki Admin team.

See the file /home/tcrane/work/newtwiki/BrianTest.txt for an illustration of the syntax for doing this within a user's home topic, such that the user can adjust the visible items themselves.

Note: It is essential that the meta-data records of the form,

FORM FIELD Mobile Mobile
are changed to,
FORM FIELD Mobile Mobile  
otherwise the will return a blank "User Item" field.

Tom Crane, Wed Oct 31 18:08:20 GMT 2012. -->

RHUL User Account Details

User Item Value
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding RHUL Physics Department TWiki? Send feedback