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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • CiviCRM homepage - no use for the dashboard
Pages: [1]

Author Topic: CiviCRM homepage - no use for the dashboard  (Read 1151 times)

DenisD

  • I’m new here
  • *
  • Posts: 11
  • Karma: 1
CiviCRM homepage - no use for the dashboard
June 16, 2010, 02:02:59 am
Hello everybody,

For our application of CiviCRM, the "dashboard" is not really useful. I would therefore like to replace the CiviCRM homepage with something else: e.g. the "Find Contacts" page.

I already took "Home" out of the CiviCRM menu. However, the link in the Drupal menu (where CiviCRM is hosted) and other redirects within CiviCRM take you to the "dashboard".

What can I do?

Thanks,
Denis

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: CiviCRM homepage - no use for the dashboard
June 18, 2010, 06:10:30 am
You can use hook_civicrm_dashboard to redirect or replace with your own html:

http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+hook+specification#CiviCRMhookspecification-hookcivicrmdashboard

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: CiviCRM homepage - no use for the dashboard
June 18, 2010, 07:31:39 am
That hook could also be used to redirect?

I used this custom code for a certain site to redirect (users with a certain role) from the dashboard to a custom View instead:

Code: [Select]
// Users with a certain role get redirected to a custom page when attempt to access
// the civicrm home page
function XX_custom_init() {
  global $user;
  if (('civicrm/dashboard' == $_REQUEST['q'] ||
       'civicrm' == $_REQUEST['q'] )
      && in_array('adminuser',$user->roles)) {
    drupal_goto('civicrm/find_contacts');
  }
}

The page "civicrm/find_contacts" is a custom View using CiviCRM Views Integration.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: CiviCRM homepage - no use for the dashboard
June 18, 2010, 04:21:03 pm
If you're using apache another way could be to put a mod_rewrite rule in your .htaccess. Other webservers might have similar abilities.

KevanC

  • Guest
Re: CiviCRM homepage - no use for the dashboard
September 01, 2010, 01:33:51 am
Hi Dennis

We have exactly the same need to replace the dashboard with the 'find contacts' page. Did you try any of the suggestions above - we would be grateful if you could share what you did so that we can try the same approach.

Kevan

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: CiviCRM homepage - no use for the dashboard
September 01, 2010, 02:41:26 am
The solution I provided above works, if you have someone who can put that code into a small custom module.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • CiviCRM homepage - no use for the dashboard

This forum was archived on 2017-11-26.