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 (Moderator: Dave Greenberg) »
  • Running into Walls
Pages: [1]

Author Topic: Running into Walls  (Read 1885 times)

xtempore

  • Guest
Running into Walls
February 09, 2010, 09:49:24 pm
Sorry for the vague title.  I've just started using CiviCRM - running it under Joomla, to create a site for an association of natural health practitioners.  At first it looked great, but I quickly started running into all sorts of problems.

Even after hours of reading documentation and searching Google I am still stuck.  I'm sure there must just be some fundamental thing I'm doing wrong.  Here's a short list of some of my biggest problems / questions...

1. How do I give extra functionality to admin staff, without giving them access to the Joomla backend?  For example ordinary practitioners can update their own basic profile, but admins should be able to update anyone's.  I want to provide this in the front end - not by giving them access to all of Joomla / CiviCRM.

2. How do I EXCLUDE records from search results. Basic practitioner details (name, address, ...) are visible/searchable for the public, BUT some practitioners want their information kept private - I.e. only accessible by admins.

3. How can you JOIN results in a search?  Some practitioners work in multiple clinics.  I would have liked to create each clinic as an Organisation and each pracititioner as an Individual, with the appropriate relationships between the two.  But when I did this, then I couldn't get a decent looking search result.  Searching on Organization was no good because I couldn't search by practitioner name, and searching by Inidividual wasn't any good, because all the contact details (address, etc) were in the Organization.

Any help or direction on these would be much appreciated!

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Running into Walls
February 10, 2010, 02:49:53 am
Hi,
sorry to hear it is such a frustrating experience for you! Let me assure you, I still find CiviCRM great and I think all of the things you mention can be done. I know nothing about Joomla so unfortunately I can not help you there, you might need more assistance! If so, check out the IRC channel, there is usually enough help around there....For your second problem, have a look at the functionality around profiles, that might be a good solution?
Erik
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

xtempore

  • Guest
Re: Running into Walls
February 10, 2010, 03:36:32 am
Thanks for the feedback.

I am using profiles, but I don't really see how I can exclude those that want to not be published.  Is there some way to have a field in the search criteria that has a fixed value and is hidden?

I've spent so much time on this already, that I could've probably just coded everything I need in PHP.  I haven't completely abandoned the hope of using CiviCRM, but it's almost time to cut my losses.

I do appreciate you taking the time to reply though.

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Running into Walls
February 10, 2010, 03:53:05 am
What I would do is create a special group or tag for the practictioners that do not want to be published? You can then create a hook that automatically puts a practitioner in one of the two groups. But I would need more specific information to really be of use.
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

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: Running into Walls
February 10, 2010, 07:55:40 am
Quote from: xtempore on February 09, 2010, 09:49:24 pm
1. How do I give extra functionality to admin staff, without giving them access to the Joomla backend?  For example ordinary practitioners can update their own basic profile, but admins should be able to update anyone's.  I want to provide this in the front end - not by giving them access to all of Joomla / CiviCRM.

CiviCRM in Joomla does not implement fine grained permissioning (hopefully joomla 1.6 acl's will resolve this issue). The above use case is much better handled with Drupal + CiviCRM


Quote from: xtempore on February 09, 2010, 09:49:24 pm
2. How do I EXCLUDE records from search results. Basic practitioner details (name, address, ...) are visible/searchable for the public, BUT some practitioners want their information kept private - I.e. only accessible by admins.

If you are using profiles to expose data, then you can use the "limit listings by group" feature to include only those practitioners who've opted in. You can store this information in a custom field and use a smart group for it

Quote from: xtempore on February 09, 2010, 09:49:24 pm
3. How can you JOIN results in a search?  Some practitioners work in multiple clinics.  I would have liked to create each clinic as an Organisation and each pracititioner as an Individual, with the appropriate relationships between the two.  But when I did this, then I couldn't get a decent looking search result.  Searching on Organization was no good because I couldn't search by practitioner name, and searching by Inidividual wasn't any good, because all the contact details (address, etc) were in the Organization.

You might want to build a custom search for the above use case. I suspect you want to handle these 2 conditions:

a. given an organization(s) gimme all the individuals associated with the org
b. given an individiuals(s) gimme all the clinics associated with the indiv

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

xtempore

  • Guest
Re: Running into Walls
February 10, 2010, 04:02:43 pm
Hey Lobo - Thanks for some excellent tips.

Quote from: Donald Lobo on February 10, 2010, 07:55:40 am
Quote from: xtempore on February 09, 2010, 09:49:24 pm
1. How do I give extra functionality to admin staff...

CiviCRM in Joomla does not implement fine grained permissioning (hopefully joomla 1.6 acl's will resolve this issue). The above use case is much better handled with Drupal + CiviCRM

I came up with a workable solution. Ordinary practitioners are Registered, Admin staff will be Manager (and therefore qualify as Special). Although this does give them access to the backend, that's not really an issue.  The main reason for them not going in the backend is not a security issue, but because it'd confuse them.

Quote from: Donald Lobo on February 10, 2010, 07:55:40 am
Quote from: xtempore on February 09, 2010, 09:49:24 pm
2. How do I EXCLUDE records from search results. Basic practitioner details (name, address, ...) are visible/searchable for the public, BUT some practitioners want their information kept private - I.e. only accessible by admins.

If you are using profiles to expose data, then you can use the "limit listings by group" feature to include only those practitioners who've opted in. You can store this information in a custom field and use a smart group for it

Thanks. Yes, I was able to just add a Group.  Almost all practitioners allow their details to be published, so it was just a matter of including everyone in the group, and then manually excluding those whose details should remain private.

Quote from: Donald Lobo on February 10, 2010, 07:55:40 am
Quote from: xtempore on February 09, 2010, 09:49:24 pm
3. How can you JOIN results in a search?  Some practitioners work in multiple clinics.  I would have liked to create each clinic as an Organisation and each pracititioner as an Individual, with the appropriate relationships between the two.  But when I did this, then I couldn't get a decent looking search result.  Searching on Organization was no good because I couldn't search by practitioner name, and searching by Inidividual wasn't any good, because all the contact details (address, etc) were in the Organization.

You might want to build a custom search for the above use case. I suspect you want to handle these 2 conditions:

a. given an organization(s) gimme all the individuals associated with the org
b. given an individiuals(s) gimme all the clinics associated with the indiv

That's not quite what I'm after.  I really just want users to be able to search for a practitioner name, or location etc, they should then see a result that shows a line for each practitioner / clinic that matches the criteria.  So for example if I search for "Mary" I might get...
Mary Smith, Hope Clinic, Summervale ...
Mary Smith, Sunshine Clinic, Georgetown ...
Mary Jones, Spring Clinic, Valley Heights ...

Whereas if I search for location "Summervale" then I get...
Mary Smith, Hope Clinic, Summervale ...
Bob Brown, Treeline Clinic, Summervale ...

I had tried just merging the data to do away with the organizations altogether, but this meant that an actual practitioner might have 2, 3 or more Individual records.  This then causes problems with trying to relate that to users.

Any thoughts?

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: Running into Walls
February 10, 2010, 04:45:08 pm
Quote from: xtempore on February 10, 2010, 04:02:43 pm
That's not quite what I'm after.  I really just want users to be able to search for a practitioner name, or location etc, they should then see a result that shows a line for each practitioner / clinic that matches the criteria.  So for example if I search for "Mary" I might get...
Mary Smith, Hope Clinic, Summervale ...
Mary Smith, Sunshine Clinic, Georgetown ...
Mary Jones, Spring Clinic, Valley Heights ...

Whereas if I search for location "Summervale" then I get...
Mary Smith, Hope Clinic, Summervale ...
Bob Brown, Treeline Clinic, Summervale ...

I had tried just merging the data to do away with the organizations altogether, but this meant that an actual practitioner might have 2, 3 or more Individual records.  This then causes problems with trying to relate that to users.

Any thoughts?

For the above use case i think it might be easiest / fastest to write a custom search:

http://wiki.civicrm.org/confluence/display/CRMDOC/Custom+Search+Components

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

xtempore

  • Guest
Re: Running into Walls
February 10, 2010, 05:02:55 pm
Thanks.  I was hunting around and found the Custom Search functionality. 

It looks like it could work, but I don't understand how I then use it in the front-end (Joomla).

I'd already posted a separate question before I got your reply...
http://forum.civicrm.org/index.php/topic,12146.0.html

If you have an answer perhaps post there instead, so we don't get doubled up.

Thanks for all your help!

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: Running into Walls
February 11, 2010, 07:33:58 am

i made a mistake, to expose things in the front end u will need to create a civireport (similar to custom search), instructions here:

http://wiki.civicrm.org/confluence/display/CRMDOC/CiviReport+structure+and+customization

reports can be exposed to the anonymous user (they have permissioning associated with it). Note that you need to be pretty proficient with php/mysql to write a report. ping us on irc if u need help

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]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Running into Walls

This forum was archived on 2017-11-26.