drupal-7civicrmcivicrm-extension

Where to put CiviCRM 4+ extension in Drupal


I am trying to develop a CiviCRM extension, and I have created a civiCRM extension (skeleton) using Totten\Civix.

In which directory should I put CiviCRM extension and how do I enable it in CiviCRM?

I have tried putting it in sites\default\files\civicrm\ext but when I go to Administer -> Extensions I caan't find it listed, when I click on Add New button nothing comes up.

CiviCRM is running in Drupal 7 and Drupal/CiviCRM are install on my local machine running WAMP.

I am new to this, any help will be appreciated


Solution

  • First, you have to define the extensions directory in CiviCRM -> Administer -> System settings -> Directory, item CiviCRM Extensions Directory

    You should also define Extension Resource URL in CiviCRM -> Administer -> System settings -> Resource URLs so that some extensions can find the files they need (images, javascript, css files).

    You can choose any path as long as there is the proper permissions (read/write access to www-data). CiviCRM create a /cache directory in order to retrieve information from extensions directory on CiviCRM servers and install new extensions from the UI. It's not required but it's useful while preparing your site.

    (Please note that there is a stackexchange for CiviCRM specifically so you might want to ask your questions there : http://civicrm.stackexchange.com)