Skip to end of metadata
Go to start of metadata
CiviCRM Documentation

This page refers to outdated version of CiviCRM. Check current version of documentation.

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

Creative Commons License
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-Share Alike 3.0 United States Licence.