"selected" class for multilingual menus
Reported by plex | June 15th, 2010 @ 12:59 PM | in 1.3.2 (closed)
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:
http://github.com/croogo/croogo/blob/master/views/helpers/layout.ph...
Initial discussion:
http://groups.google.com/group/croogo/browse_thread/thread/4c083a5c...
Comments and changes to this ticket
-

fahad19 June 19th, 2010 @ 04:31 AM
- Milestone set to 1.3.2
- Tag changed from menus, multilingual to helpers, layout, menus, multilingual
- Assigned user set to fahad19
-

plex June 23rd, 2010 @ 03:59 PM
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'];
-

fahad19 August 22nd, 2010 @ 12:56 AM
- 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...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »