Native Tabs for Views in Drupal

http://drupal.org/node/87195 – Thanks!

In drupal 6, You might not get the tabs if your menu tree does not have any parent.
ie, if here is our requirement.

We need two tabs
1) search/all (default and /search should also point to this)
2) search/artist

Here is what you do

In main view
PATH: search/all
MENU: Default menu tab
Menu Settings
Parent menu item: Normal menu item -> anything

In alternate view
Path: search/artist
MENU: Menu Tab

Drupal invoke block code

<?php $block = module_invoke(‘menu’, ‘block’, ‘view’, ‘menu-get-ready’);
// arg 1 = module
// arg 2 = hook
// arg 3 = arg 1 of the hook => $op
// arg 4 = arg 2 of the hook => $delta  ?>

The Re:Enlightenment Project

The Re:Enlightenment Project brings knowledge of the past to bear upon change in the present. Its initiatives constitute a research laboratory for the collaborative analysis, use, and invention of new—and newly remediated—instruments for knowing the world. The Project is itself such an instrument—an effort to change knowledge by changing associational practices. In a new collaboration, New York University and the New York Public Library have formed the nexus of a consortium of institutions that share a compelling interest in current transformations of knowledge. Libraries, museums, foundations, and corporations are, like universities, under increasing pressure not only to understand those changes but to participate actively in shaping them. The Project facilitates that activity by pursuing initiatives that connect investigators in New York City with each other and with colleagues at linked institutions—including Cambridge University and the University of California, Santa Barbara—across the globe.

Front Page
Front Page

Leopold Leadership Program

The Leopold Leadership Program at the Woods Institute for the Environment advances environmental decision-making by providing academic researchers with the skills and connections needed to be effective leaders and communicators.

Website is developed in Drupal 6, includes Fellows Directory, Forum, custom editing blocks for Content managers and Fellows.

Launched March 2009

Static Page
Static Page
Fellows Directory with Filters
Fellows Directory with Filters
Fellow's Page
Fellow’s Page

Morning o’Code

  • change forms using hook_form_alter
  • change text on login page
  • display teaser field
  • variables in template.php
  • search for one content type only (he cares, experts only) or search in seminars for seminars only – book + form alter + views in 6
  • Different Taxonomy Views for different terms – use views emulated template
  • Primary links Menu’s – highlighting  active tab (as in zen theme)
  • FIles upload management
  • block editing activation in template.php module

preprocess_node

<?php

function oranges_preprocess_node (&$variables) {

$variables [‘title’] =  substr ($variables[‘title’], 0, 10);
$variables [‘submitted’] =  ‘ ‘;

$variables[‘ads’] = theme (‘blocks’,’ads’ );

}

function theme_node_submitted_oranges($node) {
return t(‘Submitted by !username on @datetime’,
array(
‘!username’ => theme(‘username’, $node),
‘@datetime’ => format_date($node->created),
));
}
http://www.lullabot.com/dropbox/stanford/

arg(0)- first argument in url arg() – list of all arguments

SELECT   […] MAX(timestamp) – most recent query

two step – function readers_menu() {
$items[‘people/readers’] = array(
‘title’ => ‘Node readers’,
‘description’ => ‘Configure the display of recent readers for each node.’,
‘page callback’ => ‘readers_settings_page’,
‘access arguments’ => array(‘administer nodes’),

);
return $items;
}

in navigation menu reset menu item into menu that you need

Economics Department, Stanford University

A  website for the Economics Department at Stanford University has the following features:

  • Each section on the site is updated by non-technical  Content Managers that have set of access permissions restricted to the areas of their responsibility.
  • Custom Content types for  Courses,  Faculty Profiles, Graduate Student Profiles, Publications, Seminars
  • Single point of entry for each information item
  • Training/help section

Tools:  Drupal 5.9 with  intensive use of CCK and Views, jQuery, css, PHP

Launched 2008

Front Page
Front Page
Faculty
Faculty
Seminars (Views with custom php code)
Seminars (Views with custom php code)
Job Market Candidates (A View)
Job Market Candidates (A View)
Graduate (Static Page)
Graduate (Static Page)

Hiphop Archive [dot] org

The Hiphop Archive was officially established in 2002 under the direction of Marcyliena Morgan. From The Hiphop Archive’s inception, students, faculty, artists, staff and other participants in Hiphop culture have been committed to supporting and establishing a new type of research and scholarship devoted to the knowledge, art, culture, materials, organizations, movements and institutions developed by those who support and follow Hiphop. In response to this movement The Hiphop Archive organizes and develops collections, initiates and participates in research activities, sponsors events and acquires material culture associated with Hiphop in the U.S. and throughout the world.