1

The purpose is to modify the template by adding new columns.As you can see in screenshot CIVICRM propose Nom "name", courriel "email",Telephone "phone", Action . So i want to add column "Job" before column Action.
enter image description here

I've tried to replace this code in field 'selector.tpl'

enter image description here

by this one

enter image description here

4

You can create a profile with the fields you want to display as a column and set the 'Default Contact Search Profile' in Search Preferences (CiviCRM >> Administer >> Customize Data and Screens >> Search Preferences.

3
  • this is a great tip. I've tested on the Drupal Demo and it works fine but on our Wordpress instances it's cracked. First row has no header anymore :-/ Except setting 'Search view' for this profile and turning it active, is there anything to define? May 21 '21 at 11:36
  • Had a change to try on wpmaster.demo.civicrm.org? May 22 '21 at 7:31
  • thank you @PradeepNayak
    – Renaud F
    May 25 '21 at 8:13
2

Is this for search results? Instead you could try turning on the built-in extension "Search Kit" and it lets you add columns.

1
  • We just want to improve the basic and advanced searches result template to get a simpler view May 21 '21 at 11:15

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.