Answers.Body: <p>Pierre94, Welcome to CiviCRM stack exchange. To add custom listing is not straight forward if you not a developer. </p>
  
  <p>To add custom listing you will need to </p>
  
  <p><strong>1. Add listing option</strong></p>
  
  <p>Navigate to CiviCRM >> Administer >> System Settings >> Option Groups. Find for 'Participant Listing' and click edit option besides it. Add new option with label as listing name and and Description as class name to invoke when viewing this option eg CRM_Event_Page_ParticipantListing_NameStatusAndDate.</p>
  
  <ol start="2">
  <li>Implement the listing using code in your extension</li>
  </ol>
  
  <p>Copy paste any php file from <a href="https://github.com/civicrm/civicrm-core/tree/master/CRM/Event/Page/ParticipantListing" rel="nofollow noreferrer">here</a> into your extension directory(use the path same as defined in your listing option). Similarly do for tpl from <a href="https://github.com/civicrm/civicrm-core/tree/master/templates/CRM/Event/Page/ParticipantListing" rel="nofollow noreferrer">here</a>. Modify the php and tpl file as per your needs.</p>
  
  <p>Thanks</p>
  
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-09T19:06:13.227Z
Answers.Text: Thank you very much. I do it and it's ok
Answers.UserDisplayName: Pierre94
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-10T19:14:55.033Z
Answers.Text: Pierre - are you able to 'accept' the above answer, or do you not yet have enough reputation?
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-09T13:02:19.040Z
Answers.LastActivityDate: 2019-09-09T13:02:19.040Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>Bonjour,</p>
  
  <p>i want to add a custom participant listing option (there is a topic 3 years ago but i don't understand the comment).</p>
  
  <p>I create a specific option in Administer CiviCRM / Lists of choice / List of participants.</p>
  
  <p>But how and where i can specified the field i want : Name + default role for example.</p>
  
  <p>Thanks for your help</p>
  
Tags: <civievent><drupal>
Title: CIVIEvent - List of participants
ThreadText: # CIVIEvent - List of participants
  
  (Asked by: username_0 on 2019-09-09)
  
  Bonjour,
  
  i want to add a custom participant listing option (there is a topic 3 years ago but i don't understand the comment).
  
  I create a specific option in Administer CiviCRM / Lists of choice / List of participants.
  
  But how and where i can specified the field i want : Name + default role for example.
  
  Thanks for your help
  
  **Tags:** civievent, drupal
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-09-09. Score: 4
  
  username_0, Welcome to CiviCRM stack exchange. To add custom listing is not straight forward if you not a developer.
  
  To add custom listing you will need to
  
  **1. Add listing option**
  
  Navigate to CiviCRM >> Administer >> System Settings >> Option Groups. Find for 'Participant Listing' and click edit option besides it. Add new option with label as listing name and and Description as class name to invoke when viewing this option eg CRM\_Event\_Page\_ParticipantListing\_NameStatusAndDate.
  
  2. Implement the listing using code in your extension
  
  Copy paste any php file from [here](https://github.com/civicrm/civicrm-core/tree/master/CRM/Event/Page/ParticipantListing) into your extension directory(use the path same as defined in your listing option). Similarly do for tpl from [here](https://github.com/civicrm/civicrm-core/tree/master/templates/CRM/Event/Page/ParticipantListing). Modify the php and tpl file as per your needs.
  
  Thanks
  
  Pradeep
  
  > **Comments:**
  > **username_0**: Thank you very much. I do it and it's ok  
  > **username_2**: Pierre - are you able to 'accept' the above answer, or do you not yet have enough reputation?  
  
  ---
  
  