"selected" class for multilingual menus
If I use the translation plugin, and set the menu links to this format: "controller:contacts/action:view/contact", selected class is not set for the active page.
I couldn't figure out what to change at line 337 here:
Comments and changes to this ticket
This is my ugly fix for this, didn't have time to study the inner workings of croogo and cakephp
$pageLink = explode('/', Router::url($link['Link']['link'])); $linkUrl = explode('/', Router::url('/' . $this->params['url']['url']));
if($pageLink[count($pageLink) - 1] == $linkUrl[count($linkUrl) - 1 ]) $linkAttr['class'] = $options['selected'];
- State changed from new to resolved
- Milestone order changed from 0 to 0
Fixed by kitten (Heiner Gassen): http://github.com/croogo/croogo/commit/ec8cb4cdd9fa5727aeff0bc34eda...