I want users to be able to list people by the year they left - "Class of..."If you use a Profile and set the Class Of field to be "In Selector" then people can click on a year in the search results to search for all contacts in that year. You should also be able to pre-populate a profile search parameter (e.g. "Class Of") in the profile listings URL and set force=1. This would allow you to quite easily set a dynamic link for each authenticated user to see their class listing by default... the link syntax is http://..../civicrm/profile?gid=n&custom_x=1999&force=1
You'd need to write simple PHP making use of CiviCRM API's and put it in a Drupal block to grab the user's "Class Of" value. [Source. ] |
Labels
