|
Cookbook /
FoxContactsSummary: Create personal or business Contacts pages and lists with Fox
Version: 2008-03-29
Status: new
Maintainer: HansB
Download: foxcontacts.zipΔ
DescriptionAn application using Fox to create and maintain pages in a Contacts group, which store contact information in form of PTVs (Page Text Variables). Copy the page files from foxcontacts.zipΔ into your wiki.d/ folder, and the Contacts.php file into your local/folder. Install Fox, FoxEdit and FoxDelete if you have not done already. This will create a group named Contacts, with the following pages:
New contacts are created as new pages in the group, and listed on the index page. Optional add a pagelist for the sidebar or rightbar to list all contacts: *[[NewContact]]
!!!!Contacts:
(:pagelist group={*$Group} list=normal fmt=#title name=-*Template,-*Contact* :)
With custom display templates one could display for instance telephone numbers or email address next to the name. Or other index pages could be added with special listings of selected contact details. Live example: FoxContacts NotesRelease Notes
CommentsNeat. Any thoughts on how to get a vcard?
Also, suppose I added a "birthday" field. Any idea how that could be integrated with
one of the calendars, say PmCalendar? (I'd hesitate to simply add a name to a date
page, as we might have to correct birthdates later. I also wouldn't want to make a
calendar loop over every contact page for every date.) -- rlt
Very flexible and useful. However, the delete function only deletes the content lines but not the contact. Therefore, pagelist still thinks the contact exists and will list deleted contacts in the contact list. To actually delete a contact, the content should, in this case, be replaced with 'delete'. How do I do that? -- jhj
Set in alocal config for your contacts group (for instance in local/Contacts.php);
$DeleteKeyPattern = "^\\s*$";
Now a page will be deleted if it is empty. So the fox deleterange link or button will erase the page as well. HansB
PKHG speaking: Hans (reply by e-mail?), if you specify the layout of a birthday, I could adjust the GcalPmWiki to allow
Birthday-Groups (as you use it here for Contacts) to scan all "BirthdayGroup".* files for birthdays (only the first one? or several?) or a Birthday-only-Kalendar Hans: The edit screen (form=FoxEditContact)on your demo website is missing the captcha. Attempts to edit and existing contact and then save trigger the messgae "ERROR: Missing or wrong Captcha Code!" Pico November 20, 2007, at 03:50 PM
Thanks for catching that! I fixed it now on my site. I left out captcha or access code from the recipe here, as I think that will in any case have a Contacts group under lock, either with edit or with read access restricted. HansB November 20, 2007, at 04:17 PM
I have just tried to install FoxContacts and I am getting the following error when I select the edit a contact link:
I also found that I needed to install foxdelete.php to make the delete links work which was not documented (is that correct). I have searched for this error message but I can't figure out what I have done wrong, I have not edited the pages or anything they are just how I downloaded them and I have saved all the files to default directories. Any help much appreciated - Neal : April 21, 2008 Thank you for pointing this out! There seems to be a bug in the latest FoxEdit regards the form check. Till this is sorted please set in config.php This bug is now fixed in FoxEdit - HansB April 21, 2008, at 05:17 AM Thank you - Neal See AlsoContributors |