Answers.Body: <p>The current correct way to create a custom report is to use an extension, rather than the manual process linked to in the question.</p>
  
  <p>Updated documentation for creating a report extension is found here:</p>
  
  <p><a href="https://docs.civicrm.org/dev/en/latest/extensions/civix/#generate-report" rel="nofollow noreferrer">https://docs.civicrm.org/dev/en/latest/extensions/civix/#generate-report</a></p>
  
  <p>The link in Donald Lobo's answer is now broken, but an old version of the document is still available here:</p>
  
  <p><a href="https://wiki.civicrm.org/confluence/display/CRMDOC46/Create+a+Report-Template+Extension" rel="nofollow noreferrer">https://wiki.civicrm.org/confluence/display/CRMDOC46/Create+a+Report-Template+Extension</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-13T03:49:42.803Z
Answers.LastActivityDate: 2017-10-13T04:03:19.777Z
Answers.LastEditDate: 2017-10-13T04:03:19.777Z
Answers.UserDisplayName: Jude Hungerford
Answers.Body: <p>A better approach might be to use an extension rather than the above. Documentation for report extensions here:</p>
  
  <p><a href="http://wiki.civicrm.org/confluence/display/CRMDOC/Create+a+Report-Template+Extension" rel="nofollow">http://wiki.civicrm.org/confluence/display/CRMDOC/Create+a+Report-Template+Extension</a></p>
  
  <p>You might be able to borrow some code from other reports which show the groups a contact belongs to (not sure if any report does so)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-02T10:35:55.677Z
Answers.Text: ew, there you go, I already used the 'legacy' way of creating a report :-/ I dont think any of the default reports show groups for contacts.
Answers.UserDisplayName: commonpike
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-01T16:31:22.547Z
Answers.LastActivityDate: 2015-06-01T16:31:22.547Z
Answers.UserDisplayName: Donald Lobo
Body: <p>I've got the request to display (certain) groups in the membership detail report. A lot has been written over time about customizing reports, and I'm not sure what info is up-to-date. This looks good:
  <a href="https://alastaira.wordpress.com/2011/03/17/civicrm-creating-a-custom-report/" rel="nofollow">https://alastaira.wordpress.com/2011/03/17/civicrm-creating-a-custom-report/</a></p>
  
  <p>I think roughly, I would need to </p>
  
  <ul>
  <li>set up the paths for custom templates and php files at setting/path</li>
  <li>create a custom template with just a single {include file="CRM/Report/Form.tpl"}</li>
  <li>create a custom php file copied from CRM/Report/Form/Member/Detail.php</li>
  <li>register both using Administer –> CiviReport –> Manage Templates</li>
  <li>in the php file, append stuff to _columns and from()</li>
  </ul>
  
  <p>is that correct ? Has anyone already done something like this for groups .. ?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-17T13:04:44.227Z
Comments.Text: having said that, I created an extension to do this later, and it was fairly easy too :-)
Comments.UserDisplayName: commonpike
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-06-02T10:36:16.327Z
Comments.Text: as Lobo points out below, this is the legacy way of doing it.
Comments.UserDisplayName: commonpike
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-06-02T10:37:01.443Z
Comments.Text: having said that, I did it just as described, and it was fairly easy :-)
Comments.UserDisplayName: commonpike
Tags: <civireport><groups><custom-templates>
Title: How can I show groups in membership report columns?
ThreadText: # How can I show groups in membership report columns?
  
  (Asked by: username_0 on 2015-06-01)
  
  I've got the request to display (certain) groups in the membership detail report. A lot has been written over time about customizing reports, and I'm not sure what info is up-to-date. This looks good:
  <https://alastaira.wordpress.com/2011/03/17/civicrm-creating-a-custom-report/>
  
  I think roughly, I would need to
  
  * set up the paths for custom templates and php files at setting/path
  * create a custom template with just a single {include file="CRM/Report/Form.tpl"}
  * create a custom php file copied from CRM/Report/Form/Member/Detail.php
  * register both using Administer –> CiviReport –> Manage Templates
  * in the php file, append stuff to \_columns and from()
  
  is that correct ? Has anyone already done something like this for groups .. ?
  
  **Tags:** civireport, groups, custom-templates
  
  > **Comments:**
  > **username_0**: as username_2 points out below, this is the legacy way of doing it.  
  > **username_0**: having said that, I did it just as described, and it was fairly easy :-)  
  > **username_0**: having said that, I created an extension to do this later, and it was fairly easy too :-)  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2017-10-13. Score: 4
  
  The current correct way to create a custom report is to use an extension, rather than the manual process linked to in the question.
  
  Updated documentation for creating a report extension is found here:
  
  <https://docs.civicrm.org/dev/en/latest/extensions/civix/#generate-report>
  
  The link in username_2's answer is now broken, but an old version of the document is still available here:
  
  <https://wiki.civicrm.org/confluence/display/CRMDOC46/Create+a+Report-Template+Extension>
  
  
  ---
  
  ### Answer by username_2 on 2015-06-01. Score: 3
  
  A better approach might be to use an extension rather than the above. Documentation for report extensions here:
  
  <http://wiki.civicrm.org/confluence/display/CRMDOC/Create+a+Report-Template+Extension>
  
  You might be able to borrow some code from other reports which show the groups a contact belongs to (not sure if any report does so)
  
  > **Comments:**
  > **username_0**: ew, there you go, I already used the 'legacy' way of creating a report :-/ I dont think any of the default reports show groups for contacts.  
  
  ---
  
  