<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://guaka.org"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Guaka! - smarty</title>
 <link>http://guaka.org/tag/smarty</link>
 <description></description>
 <language>en</language>
<item>
 <title>Adding Group overview to CiviCRM contact summary page</title>
 <link>http://guaka.org/2010/01/06/adding-group-overview-to-civicrm-contact-summary-page</link>
 <description>&lt;div class=&quot;field field-name-taxonomy-vocabulary-2 field-type-taxonomy-term-reference field-label-above clearfix&quot;&gt;&lt;h3 class=&quot;field-label&quot;&gt;tag: &lt;/h3&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li class=&quot;taxonomy-term-reference-0&quot;&gt;&lt;a href=&quot;/tag/free-software&quot;&gt;free software&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;taxonomy-term-reference-1&quot;&gt;&lt;a href=&quot;/tag/hacking&quot;&gt;hacking&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;taxonomy-term-reference-2&quot;&gt;&lt;a href=&quot;/tag/smarty&quot;&gt;smarty&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;taxonomy-term-reference-3&quot;&gt;&lt;a href=&quot;/tag/civicrm&quot;&gt;civicrm&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;http://intal.be/&quot;&gt;Intal&lt;/a&gt;&#039;s CiviCRM needed some customizations.  So I delved into &lt;a href=&quot;http://civicrm.org/node/100&quot;&gt;CiviCRM&#039;s templating system&lt;/a&gt;, which is based on smarty.   Most things were pretty easy but it took some more time to figure out how to add the Group overview to the Contact Summary.

In &lt;tt&gt;sites/default/civicrm_custom/CRM/Contact/Page/View/Summary.tpl&lt;/tt&gt; I added to the appropriate spot.
&lt;code&gt;
{include file=&quot;CRM/Contact/Page/View/GroupContact.tpl&quot;}
&lt;/code&gt;

In order to keep my customizations separate from the core CiviCRM code I tried adding the following lines to the template.
&lt;code&gt;
{php}
    require_once &#039;CRM/Contact/Page/View/GroupContact.php&#039;;
    CRM_Contact_Page_View_GroupContact::browse();
{/php}
&lt;/code&gt;
But that did not work unfortunately.

So for now I stick with adding the following lines to &lt;tt&gt;CRM_Contact_Page_View_Summary extends CRM_Contact_Page_View::view()&lt;/tt&gt; in &lt;tt&gt;sites/all/modules/civicrm/CRM/Contact/Page/View/Summary.php&lt;/tt&gt;:

&lt;code&gt;
require_once &#039;CRM/Contact/Page/View/GroupContact.php&#039;;
CRM_Contact_Page_View_GroupContact::browse();
&lt;/code&gt;

There should be a nicer solution that doesn&#039;t require hacking core CiviCRM code...
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
<pubDate>Wed, 06 Jan 2010 14:44:26 +0000</pubDate>
<dc:creator>Guaka</dc:creator>
<guid isPermaLink="false">259 at http://guaka.org</guid>
</item>
</channel>
</rss>
