Hi,
Does anybody has the Localizer module and Panels module working together.
I try to build a multi-language website and needs the Panels module also for this?

Greetings,
Martijn

Comments

weedoo’s picture

I am looking for the same thing, I realised that when I use a node inside a region of my panel, It doesn't seem to be translated through localizer. Anyone has a clue ?

weedoo’s picture

take a look at this post, Roberto found a way to do it, works perfectly for me
http://drupal.org/node/119028#comment-197483

this is my version

  $localized_nid = localizernode_get_localizednid($conf['nid'], localizer_get_defaultcontentlocale());
  $node = node_load($localized_nid);

  if (!node_access('view', $node)) {
    return;
  }

  if ($conf['suppress_title']) {
    $node->title = '';
  }

  $output = node_view($node, $conf['teaser'], FALSE, $conf['links']);
  return $output;