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 »
  • Using CiviSchool (Moderators: Donald Lobo, Deepak Srivastava) »
  • Drupal 7 release plans?
Pages: [1] 2

Author Topic: Drupal 7 release plans?  (Read 4346 times)

chasgriff

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Joomla 7
  • MySQL version: 5.6
  • PHP version: 6
Drupal 7 release plans?
May 25, 2011, 08:19:38 am
Thank you so much for all of your hard work in developing CiviSchool! I am planning on implementing CiviSchool for an educational nonprofit that provides tutoring, testing, and summer programs. The application form looks like a very good fit to streamline our workflow for entering Consultation forms, as it covers all the field and relationship data that we collect.

Are there any plans to update CiviSchool to make it compatible with the latest version of Drupal/CiviCRM?

Best,

chasgriff

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: Drupal 7 release plans?
May 26, 2011, 07:54:31 pm

This is currently not planned. However if i do have some time, i hope to switch to D7 / C4 before the beginning of the next school year, i.e. Sept 1, 2011

I dont think it will be to hard to upgrade the code. Its fairly well written (or so i hope). If you have an interest in upgrading it and have coding skills ping us on IRC and we can help u get started. If your org can help fund the upgrade, please contact me via email

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

chasgriff

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Joomla 7
  • MySQL version: 5.6
  • PHP version: 6
Re: Drupal 7 release plans?
May 27, 2011, 07:51:25 pm
lobo,

Thanks so much for your reply. I'm glad to hear that this would be a minimally difficult code upgrade. Unfortunately, my programming skills consist in following directions on forums until I solve whatever installation/customization problem I'm desperately trying to make happen. I'll do my best to beg for some money from our Board :-) Best of luck on your projects!

Cheers,

chasgriff

ymmatt

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
Re: Drupal 7 release plans?
August 18, 2011, 03:19:27 pm
Not sure if I should revive this old post, but I was wondering if there was any news on this being updated to 3.4 or to 4.0?

If not then I'll build a test environment in 3.2 but didn't want to do that if there was another version in the pipeline
« Last Edit: August 18, 2011, 03:32:16 pm by ymmatt »

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: Drupal 7 release plans?
August 18, 2011, 06:04:39 pm

Sorry, did not find the time to upgrade to D7 this summer :(

However the site is running on 3.3.5 and i suspect i'll upgrade it to 3.4.x sometime after school starts

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

ymmatt

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
Re: Drupal 7 release plans?
August 19, 2011, 11:33:02 am
So back to this thread. I just installed Drual 7 with civiCRM 4 so if I want to help work towards the upgrade where are some good resources to make sure I do it right?

-M

Edit:
  I guess a better question is whether or not there are changes in the civiCRM functionality between 3.3.5 and 4.0? I'm familiar with module development in Drupal, but not too familiar with civiCRM code etc..
« Last Edit: August 19, 2011, 11:49:23 am by ymmatt »

ymmatt

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
Re: Drupal 7 release plans?
August 19, 2011, 02:22:52 pm
So I've stalled out again, gave the drupal code-update module a go, but as I guessed it wasn't enough to make it work in civiCRM.

I can't attach the Coder Code-update output .patch file as the file is too large.

Next step is to find the relevant changes between 3.3 and 4.0, any pointers in the right direction would be great.


ymmatt

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
Re: Drupal 7 release plans?
August 19, 2011, 03:47:21 pm
Replying to myself again  ;D

I got rid of all of the crud from coder-upgrade as it caused more problems instead of helping.

So I think I have the base functionality working, at least I can go to the URL's that I found in the sfschool.xml file

It doesn't show in the menu, which seems strange, but probably indicative of other issues.

I'm finding smaller issues, but will keep hacking away.

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: Drupal 7 release plans?
August 19, 2011, 08:10:11 pm

cool. thanx for pushing this along. I'm a bit busy with civicon and sprints next week, but will checkin and help out as much as i can :)

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

ymmatt

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
Re: Drupal 7 release plans?
August 20, 2011, 08:53:09 am
Does it need to be registered as a component?

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: Drupal 7 release plans?
August 20, 2011, 02:19:05 pm

No. its a drupal module, so it needs to be enabled

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

ymmatt

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
Re: Drupal 7 release plans?
August 20, 2011, 07:20:56 pm
I may not have been clear, or may be using the wrong terminology. I'm used to working with the drupal architecture and code, making modules etc., I'm just having a hard time with working with the existing sfschool code and how to integrate it with the main civicrm code.

I thought this page was a good start, but based on your above reply it doesn't sound like it is:
http://wiki.civicrm.org/confluence/display/CRMDOC40/Creating+custom+components

Is there somewhere that would be a better start?

Is the sfschool module a Civicrm Extension:
http://wiki.civicrm.org/confluence/display/CRMDOC40/Creating+CiviCRM+extensions

a component?
http://wiki.civicrm.org/confluence/display/CRMDOC40/Creating+custom+components

or neither?

-m

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: Drupal 7 release plans?
August 21, 2011, 08:23:10 am

It is a drupal module (in a very similar way that civicrm is a drupal module). BUT most / all the hooks it implements are CiviCRM hooks:

http://wiki.civicrm.org/confluence/display/CRMDOC40/CiviCRM+hook+specification

Since i know civicrm a lot better than i know drupal, i use civi's framework to define the forms and pages etc.

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

ymmatt

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
Re: Drupal 7 release plans?
August 21, 2011, 11:28:29 am
Ok, so I think I follow what you are saying, just means that I'm finally forced to look under the hood of CiviCRM :)

I know that the menu isn't the most important part, but it wasn't automatically populated from the SFS/xml/Menu/sfschool.xml file like it appeared to be in 3.3.5. To get a menu item I had to implement hook_civicrm_navigationMenu, is this normal:

Code: [Select]
function sfschool_civicrm_navigationMenu( &$params ) {
  //  Get the maximum key of $params
  $maxKey = ( max( array_keys($params) ) );

  $params[$maxKey+1] = array (
    'attributes' => array (
      'label'      => 'School',
      'name'       => 'School',
      'url'        => null,
      'permission' => null,
      'operator'   => null,
      'separator'  => null,
      'parentID'   => null,
      'navID'      => $maxKey+1,
      'active'     => 1
      ),
    'child' =>  array (
      '1' => array (
        'attributes' => array (
          'label'      => 'School Sign-Out',
          'name'       => 'School Sign-Out',
          'url'        => 'civicrm/school/signout',
          'permission' => 'access profile listings and forms',
          'operator'   => null,
          'separator'  => 1,
          'parentID'   => $maxKey+1,
          'navID'      => 1,
          'active'     => 1
          ),
        'child' => null
      )
    )
  );
}

-matt

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: Drupal 7 release plans?
August 21, 2011, 10:53:50 pm

yes, you need to implement the navigation hook, for menu items to show up there

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

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules »
  • Using CiviSchool (Moderators: Donald Lobo, Deepak Srivastava) »
  • Drupal 7 release plans?

This forum was archived on 2017-11-26.