Blocks not shown using context

Events happening in the community are now at Drupal community events on www.drupal.org.
jmolivas's picture

I been using DS and Contex about a year ago may a little more in our last 6 or7 website sites on Drupal 7, but now I doing something I haven't done before using the "View mode per node" from Extras.

I have a content-type Article the following Node have the Default Full VideMode applied and have a context in place in order to show some blocks below content "Novedades (Two teaser nodes) + Image".

http://cuamoc.hechoendrupal.com/es/brindando-un-mejor-futuro/responsabil...

In this other case same content-type Article when setting a different ViewMode to Node on Edit>Display Settings using DS Extra option "View mode per node" , When doing this Context does not applies to Node and blocks below content are not shown.

http://cuamoc.hechoendrupal.com/es/esencia-cuauhtemoc-moctezuma/nuestros...

Is this a bug or this is the way it supposed to work ?

Best regards

Comments

I found what is happening

jmolivas's picture

I found what is happening http://api.drupalhelp.net/api/context/context.core.inc/function/context_...

<?php
function context_node_view($node, $view_mode) {
  if (
$view_mode === 'full') {
   
$object = menu_get_object();
    if (isset(
$object->nid) && $object->nid === $node->nid) {
     
context_node_condition($node, 'view');
    }
  }
}
?>

--
http://jmolivas.com/
@jmolivas

Display Suite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week