To let translations of contexts nodes work within a panel I added a few lines of code which already existed in the legacy node code but not in the contexts node.inc:

In function panels_context_create_node

I changed
$data = node_load($data['nid']);

into

    $nid = $data['nid'];  
    
    if (module_exists('translation')) {
        if ($translation = module_invoke('translation', 'node_nid', $nid, $GLOBALS['locale'])) {
        $nid = $translation;
        }
    }
    
    $data = node_load($nid);
CommentFileSizeAuthor
#3 node.inc_.patch531 bytesstroobl

Comments

stroobl’s picture

Status: Needs review » Reviewed & tested by the community

I've been testing this and it seems to work for me.
Thanks.

sdboyer’s picture

Thanks for this. However, I'd prefer it if you could follow the drupal patch guidelines, even for something small like this; it makes it easier, quicker, and more stable for me to test patches that have been submitted as actual patch files.

stroobl’s picture

StatusFileSize
new531 bytes

This is the patch for contexts/node.inc .

catorghans’s picture

thanks,

next fixes will be a real patchfile :)

although the functionality we need all seem to work really well now.

sun’s picture

Status: Reviewed & tested by the community » Needs review
merlinofchaos’s picture

Status: Needs review » Fixed

Committed!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.