Recipe 84: Views Dashboard—code approach
Note
Ingredients
Path module (part of core)
Tabs module, part of JSTools module: http://drupal.org/project/jstools
Three completed views, without exposed tabs or special permissions
In this recipe we create a dashboard that provides quick access to several views created in this book. This involves some code, but it's fairly understandable, and easy to customize. In the next recipe, we'll use a code-free approach.
Enable the Path module if it is not already enabled.
Install the JSTools module, and enable the Tabs module.
Create a content Page called Dashboard, with a path of dashboard. Body text could be blank (or contain text, per your preference).
Go to
admin/build/blocks
and add a block called dashboard.In a separate window, on the host system, open the
README.txt
file, located in<DRUPALROOT>/sites/all/modules/jstools/tabs
. Copy the code appearing below the line that reads Sample usage. Paste the code into the Drupal block atadmin/build/block/add...