Switch Language
PermalinkI'm trying to change the style and action for the Switch Language block but I'm not having much success. First, the default block (with select) does not work at all, the javascript does not even get executed. I then tried to change the view.php file and tried hard coding the $view->action('switch_language', $cID, '--language--') action and it does not return the correct ID. Is there a little more documentation somewhere about the Switch Language block, how it works and how to customize it?

$relatedID = Section::getRelatedCollectionIDForLocale( $currentcID, $otherLocale );
$this->set('otherLocale', $otherLocale);
$this->set('relatedID',$relatedID);
Therefore now in the view layer, I have access to the cID of the corresponding page in the other language.