This documentation refers to an older version of CiviCRM (3.4 / 4.0). The current stable version is 4.1. Please introduce all documentation changes and new material here.

Skip to end of metadata
Go to start of metadata
This page refers to CiviCRM 3.4 and 4.0, current STABLE version.

Documentation Search


CiviCRM 3.4 and 4.0 Documentation

Support and Participation

Developer Resources


CiviCRM books!

Make sure to check out the FLOSS Manual Understanding CiviCRM as well! You can also support this project by ordering a hard copy.

Or support us by buying an eBook or hard copy of Using CiviCRM from Packt Publishing.

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
  • where n is the profile ID
  • x is the custom field ID for Year left (might need to pass a full date - you'll have to play with that).

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
  • None