Rajan Mayekar

  • home
  • gallery
  • about
  • contact
This site has been migrated to http://rajanmayekar.com.

Views field handler for CiviCRM custom file field

rajan — Wed, 07/13/2011 - 14:38

Someday before I gone through a forum post http://forum.civicrm.org/index.php/topic,19391.msg80795.html.
It looks like CiviCRM uses views default field handler for custom file field, which is more difficult for users to add/handle custom file field in views.
I tried to fix this, by adding separate field handler for custom field.
Here is the diff ( for civicrm3.4.x ) OR download attached patch

<?php
Index
: drupal/modules/views/civicrm/civicrm_handler_field_custom_file.inc
===================================================================?>

  • civicrm
  • drupal
  • views
  • Read more
  • 1 attachment

AddToAny widget on CiviCRM pages

rajan — Tue, 07/05/2011 - 20:59

It is very easy to integrate AddToAny ( http://www.addtoany.com/ ) on CiviCRM Pages.

Just we need to:
- Get AddToAny button code from http://www.addtoany.com/buttons/
- Copy paste the button code in respective .tpl file, where we need this widget

On Event Info page we need to put the widget code in
- templates/CRM/Event/Page/EventInfo.tpl

On PCP Info page
- templates/CRM/Contribute/Page/PCPInfo.tpl

On Online Contribution page
- templates/CRM/Contribute/Form/Contribution/Main.tpl

etc... :)

  • civicrm

CiviCRM Social Networking Bookmarks

rajan — Mon, 04/04/2011 - 22:09

civibookmark_event.png

For bookmarking in drupal I like to use module SexyBookmarks ( http://drupal.org/project/sexybookmarks ), it looks cool.
Adding social networking bookmarks on CiviCRM pages like Event Info page, PCP page will be very useful functionality.
So I created a module which extend the functionality of SexyBookmarks module on CiviCRM pages like Event info page, PCP page online and Contribution form.
Recommended CiviCRM version >= 3.3.X
sexybookmarks-6x.1.1

How to use this module?
1. Download and install the module ( attached with this post, civicrm_bookmarks.zip ).

  • bookmarks
  • civicrm
  • drupal
  • module
  • Read more
  • 1 attachment

Creating nice CiviCRM user dashboard using views, panels

rajan — Fri, 03/18/2011 - 13:59

CiviCRM User Dashboard

Views and Panels are some most using module in drupal, using these module we can create nice user dashboard to view CiviCRM related data of the users.
Here is the simple example, just u need to follow the steps to get this dashboard on your drupal installation.

Before you start, you should have working CiviCRM installation on your drupal, configured with views2 ( http://wiki.civicrm.org/confluence/display/CRMDOC33/Views2+Integration+M... ).
Recommended CiviCRM version is 3.3.x.

Download and install following modules
- views2 ( http://drupal.org/project/views )

  • civicrm
  • drupal
  • flash chart
  • panels
  • views
  • Read more
  • 1 attachment

Accessing CiviCRM custom data in different views

rajan — Mon, 03/14/2011 - 23:33

CiviCRM already allows to access custom data in views, which works really awesome .
But it seems very specific eg . we can use contact related custom data only in the contact views, or we can not use event, contact related custom data in participant views.
Following patch will allows to extend this custom data further.
Patch will make available contact related custom data in participant, contribution, activity and membership views also it allows event related custom data in participant views. In this way we can extend CiviCRM custom data in different related views too.

  • civicrm
  • drupal
  • views
  • Read more

Populating report result anywhere in CiviCRM or in Drupal

rajan — Thu, 12/09/2010 - 20:40

CiviReport has got great importance in CiviCRM. CiviReport contains very flexible framework which allows to use/create/customize any report in CiviCRM.

Here is one small trick, which is very easy and usable for displaying any report ( instance ) result anywhere within CiviCRM or Drupal, just by adding few line of code in template file( .tpl ).

Following snippet(diff against rev:31142 ) will display the Membership summary data on Membership dashboard page.
Note my Membership summary report instance id = 9

  1. Index: templates/CRM/Member/Page/DashBoard.tpl

  • civicrm
  • civireport
  • drupal
  • tricks
  • Read more

Gererating the pdf and sending it as an email attachment in drupal

rajan — Sun, 11/14/2010 - 21:46

Dompdf can be use to generate the pdf more easily, I looked at dompdf module in drupal which can be use with views.
Since we can generate the pdf for our custom drupal form very easily using dompdf but generating the pdf of form and sending it as an email attachment seems very interesting.

Here is my a sample module provides an example of creating the pdf of the drupal form and allow to download as well as allow to send the pdf as an email attachment using mimemail.

Sample form may be as follow

  1. function pdf_maker_sample_form( $form_state )
  2. {
  3.  

  • dompdf
  • drupal
  • Read more

Creating search form using datatable in Drupal.

rajan — Sun, 10/24/2010 - 19:44

For displaying tabular data, CiviCRM generally prefer jquery datatables(http://www.datatables.net/), most of the time I worked on that. I am very comfortable with the datatable because of the simplicity, apis and offcourse its great look. Datatable allows us to use it as per our requirements. Recently I worked on search integration with datatable in CiviCRM. I would like to provide one drupal example of datatable.

Datatable can be used to represent the data as client side and serverside processing.
Here is my module gives an example of serverside data processing.

  • civicrm
  • datatable
  • drupal
  • jquery
  • Read more
  • 1
  • 2
  • 3
  • next ›
  • last »
Syndicate content

Monthly archive

  • April 2010 (6)
  • May 2010 (3)
  • June 2010 (1)
  • July 2010 (2)
  • August 2010 (1)
  • September 2010 (2)
  • October 2010 (2)
  • November 2010 (1)
  • December 2010 (1)
  • March 2011 (2)
  • 1
  • 2
  • next ›
  • last »

Tags

ahah bookmarks cck civicrm civireport css datatable dompdf drupal flash chart formapi IE jquery module modules mysql panels php theming tricks UI views

Find me on

  


Ohloh profile for rajanmayekar

Meta

  • Login
  • Register
  • Drupal
  • Civicrm
  • home
  • gallery
  • about
  • contact