Using CiviCRM 5.x and Drupal 7 on localhost.

2 Questions:

1- How to fetch URL that has a full lists of contacts. Right now I can copy they URL, but when I flush the cache the URL changes, so I would need something like Path Auto for this?

2- How to modify the fields the table list view of contact

I'm attaching the screen capture for demonstration purposes:

enter image description here

  • To clarify, this question is not about Drupal Views, but search results and profiles.
    – Aidan
    Jul 30 '18 at 10:18
  1. You can configure profile to use as contact search. You can also control the result columns in profile search. To display contact result by default you can append force=1 in url.

Ref: https://docs.civicrm.org/user/en/latest/the-user-interface/searching/#views-for-display-contacts

  1. You can create smart group which holds all the contacts and use the contacts link from Manage group page to use as a url. enter image description here

  2. Use contact search url and apend force=1 to display contact by default.




Answer part of your Question.

You can create a Profile - and then from Adv Search you can specify which 'Views For Display Contacts' to use

If you are displaying the search results as contacts, you can modify the columns displayed by creating a Profile containing a different set of contact fields and then selecting that Profile here. For example you may want to include columns for Gender and Date of Birth, while eliminating Country. (learn more...)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.