📖 Documentation
CONTEXTUAL VIEWS and BLOCKS LIST - Showing content that refers to a node
see see http://drupal.org/node/64135
To Show, on each document page, the book pages/article pages/documents that reference this item as their biblio reference:
1- Made view Document_show_texts_docs with the following arg handling code:
$args[0] = arg(1);
2- Show the block for this view only on biblio pages using this php code for block display rule:
<?php
$match = FALSE;
$types = array('biblio' => 1);
if (arg(0) == 'node' && is_numeric(arg(1))) {
$nid = arg(1);
$node = node_load(array('nid' => $nid));
$type = $node->type;
if (isset($types[$type])) {
$match = TRUE;
}
}
return $match;
?>
Here is the list of contextual Views. The views are named with the displayer nodes in capital letters and the displayed nodes in lowercase letters.:
1.
Field: field_bibliography_link
* View: Document_show_texts_docs - Show, on each doc page content, the book pages/article pages/games that reference this item as their biblio reference:
2.
Field: field_person_place_reference
* View: Person_Place_images - show on each P/P page content, the images that reference this item in the above field.
* View: Person_Place_video - show on each P/P page right, the videos that reference this item in the above field. (thumbs working? There is a patch)
* View: Person_Place_audio - show on each P/P page right, the audio that reference this item in the above field.
* View: Person_Place_docs - show on each P/P page content, the docs that reference this item in the above field (add ginans/qasidas?)
* View: Person_Place_events - show on each P/P page content, the events that reference this item in the above field
3.
Field: field_event_link
* view: Hist_News_Event_video -
* view: Hist_News_Event_audio -
* view: Hist_News_Event_images
* view: Hist_News_Event_document
4.
Field: field_literature_link (not tested)
* view: Gin_Dev_Pray_video
* view: Gin_Dev_Pray_audio
* view: Gin_Dev_Pray_images
* view: Gin_Dev_Pray_document
5.
Field: field_trans_of (not tested)
* view: Doc_Gin_Dev_Pray_document
6.
Field: field_review_of (not tested)
* view: Document_reviews
7.
Field: field_news
* view: NewsEvent_speeches
* view: NewsEvent_interviews
* view: NewsEvent_pressreleases
* view: NewsEvent_articles

