Tags:
create new tag
view all tags

Question

It is desired to have a single page of user contact information in a table format of name, phone number, office, etc. We started with just a Contacts topic page, and created a table and filled everything in. However, as we add users, they don't always know to add their data to the Contacts page. Some users update the Contacts page, and not the Users Directory, some vice-versa. Now we have two sources of data, neither of which is entirely correct.

Is it possible to use the data from the Users lists to create the Contacts page, and update that table automatically when someone updates their profile in Users? That would give us a one page printable directory list for quick reference purposes.

I have searched the support questions concerning users and found nothing in this area.

  • TWiki version: 01 Feb 2003
  • Perl version:5.6.1
  • Web server & version: Apache
  • Server OS: Red Hat 7.3
  • Web browser & version:
  • Client OS:

-- MichaelBarnes - 26 Jul 2003

Answer

You can build the contact page automatically with an embedded FormattedSearch. Here is an example for TWiki.org (only the "Aa"s since there are so many users). Write:

%SEARCH{ "\* Name\: Aa" web="Main" regex="on" nosearch="on" header="| *Name* | *E-mail* |" format="|[[$web.$topic][$pattern(.*?\*.*?Name\:\s*([^\n\r]+).*)]] |$pattern(.*?\*.*?Email\:\s*([^\n\r]+).*) |" }%

To get this:

Name E-mail
Aaesha Khalfan u2005635@zuPLEASENOSPAM.ac.ae
Aakash Mandhar aakash_mandhar@yahooPLEASENOSPAM.com
Aamir Salaam aamir_ahmedabdus@adpPLEASENOSPAM.com
Aandewiel Willem Willem.Aandewiel@EffectenCompagniePLEASENOSPAM.nl
Aaran Stent aaran.stent@nieirPLEASENOSPAM.com.au
Aaron Abrams abrams@mathPLEASENOSPAM.uga.edu
Aaron Antrim aaron@humscapePLEASENOSPAM.com
Aaron Arbery aaron_arbery@mckinseyPLEASENOSPAM.com
Aaron Aston aaston@gotwistedPLEASENOSPAM.com
Aaron Aw p0lqspw02@sneakemailPLEASENOSPAM.com
Aaron Bartell aaronbartell@gmailPLEASENOSPAM.com
Aaron Bell  
AaronBorwn chiefybeefy@msnPLEASENOSPAM.com
Aaron Brady abrady0@yahooPLEASENOSPAM.com
Aaron Bryant bryantac67@yahooPLEASENOSPAM.com
AaronCaesarowicz aaronc@infotecPLEASENOSPAM.com.au
Aaron Chan aaron.chan@mercatorsystemsPLEASENOSPAM.com
Aaron Cline aaron.cline@gmailPLEASENOSPAM.com
Aaron Cole aaroncole@gmailPLEASENOSPAM.com
Aaron DaMommio aaron@damommioPLEASENOSPAM.com
Aaron Daniel amdtech@shsuPLEASENOSPAM.edu
Aaron Gillies
Aaron Graves cajunman4life@gmailPLEASENOSPAM.com
AaronHibbet ajhibbet@hotmailPLEASENOSPAM.com
Aaron Hickerson ashickerson@yahooPLEASENOSPAM.com
Aaron Hinni aaron@cybersourcePLEASENOSPAM.com
AaronJackson jacksonakj@hotmailPLEASENOSPAM.com
AaronJames none@nonePLEASENOSPAM.com
AaronKWhite aaron@sunPLEASENOSPAM.com
Aaron Kong lingjunkong@163PLEASENOSPAM.com
Aaron Lai aaron.lai@tradingscreenPLEASENOSPAM.com
Aaron Law aaron_law0127@yahooPLEASENOSPAM.com
Aaron Lee aaron.lee@scotiabankPLEASENOSPAM.com
Aaron Meyer ktrout50@hotmailPLEASENOSPAM.com
Aaron Moline aaron.moline@kpundergroundPLEASENOSPAM.com
Aaron Monfils amonfils@pipezPLEASENOSPAM.com
Aaron Oas aaron.oas@visiPLEASENOSPAM.com
Aaron Pee nemo@thebooniesPLEASENOSPAM.com
Aaron Peterson ajp@ucscPLEASENOSPAM.edu
Aaron Sansone aaronsansone@yahooPLEASENOSPAM.com
Aaron Sher asher@vanteonPLEASENOSPAM.com
Aaron Sheriff aaron.sheriff@gmailPLEASENOSPAM.com
AaronSimmons asimmons@csuPLEASENOSPAM.edu.au
Aaron Sterr asterr@poboxPLEASENOSPAM.com
Aaron Stewart aaronstewart@cantimerPLEASENOSPAM.com
Aaron Tarter ajtarter@gmailPLEASENOSPAM.com
Aaron Thibault thibault@smuPLEASENOSPAM.edu
Aaron Vegh aaron@innoveghtivePLEASENOSPAM.com
Aaron Vivat not_spam_pls
aaron vout apv@shawPLEASENOSPAM.ca
Aaron Wells aaron@thatonePLEASENOSPAM.com
Aaron Willis aaron@ScrapeGoatPLEASENOSPAM.com
Aaron Zitzer azitzer@gmailPLEASENOSPAM.com
Aatiya Zaidi aatiya_z@hotmailPLEASENOSPAM.com
Number of topics: 54

TWikiRegistrationFormUseWebForms suggests to moving the user home data into TWikiForms. That would make it easier to pull user data for reporting, e.g. $formfield(Name) instead of $pattern(...)

-- PeterThoeny - 26 Jul 2003

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2003-07-27 - MartinCleaver
 
  • 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.