1

I have this View plugin for displaying which panelized node have which layout:

class unionen_custom_panelizer_handler_panelizer_layout extends views_handler_field_entity {
  function render($values) {
    if ($entity = $this->get_value($values)) {
      if (isset($entity->panelizer->display->layout)) {
        $layout = $entity->panelizer->display->layout;
      }
      else {
        $layout = t('No layout found');
      }
      return $layout;
    }
  }
}

The result is correct when displayed in a pane, page or other display, but when I preview it, displays the wrong results - panel layouts that are not used at all for the panelized nodes. It is not a biggie, I just want to understand why I get the wrong results....

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.