FoxContacts-Talk
Back to FoxContacts
Please leave latest comments at the top!
Paginating Contacts pages
Any ideas on how one might paginate the list of contacts? — tamouse October 19, 2012, at 08:18 AM
No, I don't know how to have page numbers, when new contacts can be added anywhere and page numbering would need to be redone for the whole Contacts group. - HansB October 25, 2012, at 07:44 AM
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
$DeleteKeyPattern = "^\\s*$";
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
I have just tried to install FoxContacts and I am getting the following error when I select the edit a contact link:
PmWiki can't process your request
Error: wrong PTV name in foxedit link or edit form not suitable for PTV editing!
We are sorry for any inconvenience.
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 $EnableFoxEditFormCheck = 0;
- HansB April 21, 2008, at 05:02 AM
This bug is now fixed in FoxEdit - HansB April 21, 2008, at 05:17 AM
Thank you - Neal
Hi Hans - nice recipe. If I want to add a field do I add it to ContactTemplates and any existing contacts? Thanks Matt May 4, 2010
Yes, but you also need the extra input field in the form in page NewContact. - HansB May 05, 2010, at 11:59 AM
Hi Hans, Fantastic recipe and I'm looking forward to doing more with Fox. One question at this point, is there an easy way to establish multiple "Contact" groups within a single Wiki? I'm using pmwiki as an Intranet, and would like for individual groups in my organization to have their own contact directory.
The files in the zip are for setting up a Contacts group. But you can rename them for setting up the contact form etc. for different groups. Basically all is self-contained in one group, so several differently named contacts groups will work. One could of course put the ContactsTemplates page into the Site group to have just one page for the templates. Then the NewContacts form need adjusting to use its template from there, and the templates themselves need some adjusting to use Site.ContactsTemplates rather than just ContactsTemplates. - HansB May 05, 2010, at 05:24 PM
Hi Hans, really am starting to love Fox, incredibly useful tool for use with PMwiki. I'm a noobie when it comes to working on this stuff, but persistant, and have been able to puzzle my way through things, with the help of Google. Now, my question about Fox Contacts, you mentioned that with custom display templates you could add email or phone to the pagelist. Well, I've read everything that I could on templates and PTV and hunted the internet, but have come up dry. I can't believe that someone hasn't wanted to do the same thing with FoxContacts, but I can't seem to find anything. Do you have an example of how I could add a field from a FoxContact to a PageList? If I can see one example, I'm sure I'll be able to build my own template sucessfully (as opposed to now, where I think I'm on version 10, with no success). Thanks!!!
Sure! I added an example above for a custom pagelist template displaying title (Contact full name), telephone and email. The last two are PTVs, note the curly brackets inside curly brackets. {=$FullName}
always refers to each pagelist item (contact page) processed by the pagelist function. A PTV from another page is displayed like {PageName$:ptvname}
, so in the pagelist template PageName
gets replaced by {=$FullName}
, which gives {{=$FullName}$:ptvname}
for the PTV inside the template. Add link markup and styling etc. as needed - HansB June 04, 2010, at 02:09 AM
Talk page for the FoxContacts recipe (users).