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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Developing New Component Questions
Pages: [1]

Author Topic: Developing New Component Questions  (Read 1135 times)

simonium

  • I post occasionally
  • **
  • Posts: 38
  • Karma: 2
Developing New Component Questions
August 24, 2011, 03:51:27 am
Hi there,

We are developing a new component for CiviCRM, and just have a few general questions that hopefully somebody on the forum could help us with.

* Is there a component template, or an example component that we can work from?

* Is there more complete documentation on creating new components?

- can only find: http://wiki.civicrm.org/confluence/display/CRMDOC40/Creating+custom+components

* We've tried copying the membership component and changing file and class names and of course the info.php file and the menu xml file, but after we rebuild the menu, the new entries don't in the navigation menu. Has anyone else had this problem?

* Is there documentation on creating a search form with results table? We were able to do this in an earlier attempt with limited success, but were unable to display a respective page once a certain action was selected from the drop down menu for actions.  How do we do this and then access the selected rows of the from the results table?

---

I know this is a lot of questions for just one post, but I'm hoping someone will have experienced at least one of the problems I'm facing might be able to share their solution.  Thanks in advance...

Simon.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Developing New Component Questions
August 24, 2011, 03:59:52 am
it might be helpful if you can spell out more what your component is aiming to achieve so any pointers don't take you in the wrong direction
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

polestar

  • I post frequently
  • ***
  • Posts: 162
  • Karma: 11
    • Target Integration
Re: Developing New Component Questions
August 24, 2011, 04:21:20 am
Hi Pete,

This is for the MailChimp Integration module as discussed here http://forum.civicrm.org/index.php/topic,20814.msg87026.html#msg87026

Thanks
Rohit
CiviCRM - Installation & Support | Virtual Private Servers (VPS) with Joomla/Drupal and CiviCRM | SugarCRM & vTiger CRM Installation and Support
Target Integration | www.targetintegration.com
Subscribe to Knowledgement - Your guide to effective business | http://www.knowledgement.ie

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: Developing New Component Questions
August 24, 2011, 07:03:17 am

From the previous forum topic, seems like its a bunch of cron jobs to synchronize contacts and groups?

if so, why a component? can u model them like the scripts in bin/*

not sure if mailchimp integration fits the component model? Currently most / all the extensions are packaged as either drupal modules or joomla components/plugins.

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

simonium

  • I post occasionally
  • **
  • Posts: 38
  • Karma: 2
Re: Developing New Component Questions
August 25, 2011, 05:28:58 am
Hi guys,

Thanks for your replies. Donald, I had a look in the bin directory and also had a chat with Rohit about how this could be implemented.  A cron job that  would synchronise groups and contacts with a Mailchimp list would probably work. I'll try it out later today.

If we wanted to synchronise groups and contacts using hooks, that would work even better, as it would happen instantaneously, which would obviously be better from an end user point of view.  But what would we do if the user already had a civicrmHooks.php file in their custom directory.  How would we overcome that conflict?

I did manage to get a fully functional basic component working, though you might be right in terms of this functionality probably doesn't require it's own component.

Thanks again,

Simon.
« Last Edit: August 25, 2011, 06:10:07 am by simonium »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Developing New Component Questions

This forum was archived on 2017-11-26.