3

By default CiviCRM adds links for » View Contact Record and » View Contact Dashboard on the Drupal user account page for users that have permission to do these things.

civi links in drupal account

These links have proven to be confusing to new users when they log in and see their user account page (we have a "dashboard" in our Drupal system and they get confused when this link leads them to their CiviCRM contact dashboard, which is not helpful to them).

I know that I can:

  1. Use CSS to simply hide them
  2. Use a preprocess function in template.php for my Drupal theme to unset these from the array of user account items

But both of these are theme-specific solutions.

Is there a CiviCRM way to accomplish this?

4

Permissions are going to be your friend here. If it's a Drupal site you can set a variety of roles with permissions to access parts of CiviCRM; ie:

  • CiviCRM: access Contact Dashboard
  • CiviCRM: access CiviCRM
  • CiviCRM: view my contact
  • CiviCRM: edit my contact

To supress the View Contact Record link, remove the edit and view my contact permissions from the relevant roles.

If you want to get more granular then you can do so within CiviCRM's ACL (Access Control) settings

2

You could try to use the rules engine to redirect users to the page you want them to see post login or logout. We use rules to check to see if the person is a paid up member and if they are not we send them to the renew page - if they are paid up we send them to the members home page.

We have set up a webform where their profile page and username and password - if a user tries to login or select profile we send them to the webform to modify profile or drupal info.

hoped that helped

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.