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 Joomla Extensions (Moderator: lcdweb) »
  • ACL Adjustments in Joomla civiCRM Component
Pages: [1]

Author Topic: ACL Adjustments in Joomla civiCRM Component  (Read 4063 times)

geeffland

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
ACL Adjustments in Joomla civiCRM Component
March 23, 2010, 09:22:18 am
How easy is it or is it possible to adjust ACL permissions for the Joomla! front-end... For instance to allow users to see the Events Dashboard or participant lists in the front-end.

Thanks,
Greg

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: ACL Adjustments in Joomla civiCRM Component
March 23, 2010, 10:42:56 am

I think from a code perspective its not too hard.

However, ACL's are a bit complex to get your head around and we'll need better documentation before we can release it in the joomla disribution. if you are interested in experimenting with this, you can ping us on IRC

you might want to check the Standalone permissioning code and basically be able to mirror that code

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

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: ACL Adjustments in Joomla civiCRM Component
March 23, 2010, 03:02:57 pm
Note that you CAN expose event participant lists to Joomla front-end (if Participant Listing is enabled for the event under Configure Event). Here's an example of the URL pattern for your menu item (id=1 points to event with id of 1):

http://joomla.demo.civicrm.org/index.php?option=com_civicrm&task=civicrm/event/participant&id=1&reset=1
Protect your investment in CiviCRM by  becoming a Member!

geeffland

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
Re: ACL Adjustments in Joomla civiCRM Component
March 25, 2010, 09:15:40 pm
Dave,

Thanks for the link for the participant list...  That gets one item off my list.  Is there an easy way to get 2 versions of that list? I am guessing not...  I am thinking of having a general name list available for registered users... but for users that are "Project Leaders" I want them to get a name and contact info list.  I figure I will just build the second list manually and either tie it into the Joomla permissions or somehow cross reference with the civiCRM user (syncd) and check against the role... Joomla permission will be  the easier of the two.

Thanks again for the info on the participants link...  Do you know of any good reference that shows all the Joomla URLs available from the front-end?

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: ACL Adjustments in Joomla civiCRM Component
March 26, 2010, 04:37:22 am
Urls for building event links can be found here (toward the bottom):
http://en.flossmanuals.net/CiviCRM/EventTactics

Urls for profiles are here:
http://wiki.civicrm.org/confluence/display/CRMDOC/Configuring+Front-end+Profile+Listings+and+Forms+in+Joomla!+Sites

For permissioning, you might try JUGA. Since it builds permissions based on URL string variables, and Civi is pretty parse-able in that way, you might be able to create your required permissioning that way.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: ACL Adjustments in Joomla civiCRM Component
March 26, 2010, 12:16:48 pm
You may be able to set up a CiviCRM Profile with the Advanced Setting of 'Limit Listings to Group' - and have that group be a Smart Group based on a search of registered event participants. Then expose that profile as a searchable directory (or add force=1 and search=0 to the profile URL query string to have it just split out a listing). You can decide what contact fields to exposed when configuring the profile.

The tricky part will be limiting access to this profile (in drupal you could use CiviCRM ACLs to do so - but not in Joomla). Maybe brian's suggestion will work for that.
Protect your investment in CiviCRM by  becoming a Member!

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
Re: ACL Adjustments in Joomla civiCRM Component
June 16, 2010, 12:48:22 pm
I'm trying to figure out whether to try the JUGA approach or the one Rogerco outlined in his blog post at http://civicrm.org/node/621 as ways to restrict access to a profile to members of a Joomla! group. Anyone have good experiences with either?
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: ACL Adjustments in Joomla civiCRM Component
June 16, 2010, 12:54:59 pm
Joe,
When you say restrict to a Joomla group, do you mean one of the native Joomla groups? e.g. Manager, or Publisher?
JUGA is very URL-string-driven. Which is generally fine for Civi, since it uses pretty consistent strings to generate pages. If you're looking to create new groups besides the standard J! groups, then JUGA gives you that added functionality. I haven't used Roger's though, so I can't compare.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Joomla Extensions (Moderator: lcdweb) »
  • ACL Adjustments in Joomla civiCRM Component

This forum was archived on 2017-11-26.