CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Clarification on Views Integration
Pages: [1]

Author Topic: Clarification on Views Integration  (Read 1076 times)

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Clarification on Views Integration
April 09, 2010, 10:49:37 am
I have some general questions about Views integration, after which I will plan to update the Civi Documentation which appears a little lacking in clarity at this time.

I have a Drupal database and a CiviCRM database. For the purposes here, drupal db is called 'drupaldb' and civi db is called 'civicrmdb'. I want to use Views integration.

The only way I have been able to successfully get this integration working is to follow this: http://redspire.net/content/civicrm-views-2-integration-remote-civicrm-database

Meaning:
1) Add a new value to the $db_url array in settings.php like $db_url['civicrm'] = 'mysql://user:pass@localhost/civicrmdb';
2) Go into civicrm/drupal/modules/views/civicrm.views.inc and search out every array definition for $data['table_name']['table']['base'] and add "'database' => 'civicrm'," to the array.

My questions:
- Is there no way to achieve this scenario at present without adjusting civicrm/drupal/modules/views/civicrm.views.inc
- If no way exists at present is there a plan for easier integration?
- If no plan exists yet for easier integration, is there a reason that a field for db_url couldn't be added to CMS settings page in Civi? If filled in (and assuming one still manually applied the $db_url addition to settings.php), then couldn't civicrm/drupal/modules/views/civicrm.views.inc easily pull that value and write the database entries (and leave set to 'default' if not filled in)?

Thanks for your comments.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Clarification on Views Integration
April 09, 2010, 03:33:53 pm

Any specific reason why you cannot share the username/password between your civicrm and drupal db's?

having the same username/password simplifies the process a whole lot. We do assume that folks with "decent" hosting solutions do have the ability to create multiple db's with the same password

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

pbeakley

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 1
Re: Clarification on Views Integration
April 27, 2010, 11:52:02 am
EDIT issue resolved itself. No idea how but it's all fine now. Return to your homes, nothing to see here.
« Last Edit: April 27, 2010, 01:01:02 pm by pbeakley »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Clarification on Views Integration

This forum was archived on 2017-11-26.