Answers.Body: <p>I don't think there's an easy way to do what you're describing.  However, you CAN add a View to the CiviCRM dashboard, which may give you the same result with less effort:  <a href="https://www.drupal.org/sandbox/brandonferrell/2389543" rel="nofollow">Check it out</a>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-08T18:42:39.473Z
Answers.LastActivityDate: 2015-07-08T18:42:39.473Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>The following php code will do it. If you have the php filter enabled in drupal then you could place this in the header of the view, or in a block. Just make sure to only include this code on screens where the nav menu isn't already!</p>
  
  <pre><code>civicrm_initialize();
  CRM_Core_Resources::singleton()-&gt;addCoreResources();
  require_once 'CRM/Core/Smarty/plugins/function.crmNavigationMenu.php';
  $params = array();
  print smarty_function_crmNavigationMenu($params, $params);
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-08T19:24:41.200Z
Answers.LastActivityDate: 2015-07-08T19:24:41.200Z
Answers.UserDisplayName: Coleman
Answers.Body: <p>To answer your question, I wrote a module:</p>
  
  <p><a href="https://www.drupal.org/project/civimenu" rel="nofollow">https://www.drupal.org/project/civimenu</a></p>
  
  <p>The code snippet I posted below probably wouldn't work because of timing issues (by the time the block was being printed it's too late to add the header). Seemed better to package it up into a module. Enjoy.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-09T01:08:54.217Z
Answers.Text: dang you're good
Answers.UserDisplayName: pmoz
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-08T20:39:36.353Z
Answers.LastActivityDate: 2015-07-10T14:00:20.610Z
Answers.LastEditDate: 2015-07-10T14:00:20.610Z
Answers.UserDisplayName: Coleman
Body: <p>I have created some drupal views for civicrm. 
  But the views pages are opening inside the drupal set up, where the civicrm toolbar is not showing.
  Now, how can i show the civi toolbar in the drupal? To avoid the switching between drupal and civicrm.</p>
  
Tags: <civireport><drupal-views><civicrm-entity>
Title: How to show civicrm toolbar in drupal also?
ThreadText: # How to show civicrm toolbar in drupal also?
  
  (Asked by: username_0 on 2015-07-08)
  
  I have created some drupal views for civicrm.
  But the views pages are opening inside the drupal set up, where the civicrm toolbar is not showing.
  Now, how can i show the civi toolbar in the drupal? To avoid the switching between drupal and civicrm.
  
  **Tags:** civireport, drupal-views, civicrm-entity
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_2 on 2015-07-08. Score: 9 | Accepted answer
  
  To answer your question, I wrote a module:
  
  <https://www.drupal.org/project/civimenu>
  
  The code snippet I posted below probably wouldn't work because of timing issues (by the time the block was being printed it's too late to add the header). Seemed better to package it up into a module. Enjoy.
  
  > **Comments:**
  > **username_3**: dang you're good  
  
  ---
  
  ### Answer by username_1 on 2015-07-08. Score: 2
  
  I don't think there's an easy way to do what you're describing. However, you CAN add a View to the CiviCRM dashboard, which may give you the same result with less effort: [Check it out](https://www.drupal.org/sandbox/brandonferrell/2389543).
  
  
  ---
  
  ### Answer by username_2 on 2015-07-08. Score: 0
  
  The following php code will do it. If you have the php filter enabled in drupal then you could place this in the header of the view, or in a block. Just make sure to only include this code on screens where the nav menu isn't already!
  
  ```
  civicrm_initialize();
  CRM_Core_Resources::singleton()->addCoreResources();
  require_once 'CRM/Core/Smarty/plugins/function.crmNavigationMenu.php';
  $params = array();
  print smarty_function_crmNavigationMenu($params, $params);
  
  ```
  
  
  ---
  
  