Closed (fixed)
Project:
Context
Version:
6.x-3.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
7 Dec 2009 at 20:29 UTC
Updated:
13 Aug 2010 at 06:20 UTC
Jump to comment: Most recent file
When a menu item's child links to the same node, depth breaks on the Menu Trail Condition and the parent menu item does not display.
See attached images.
Primary Links Menu Structure:
-- Pharmaceutical Studies
-- Overview
-- Case Studies
-- Pharma Experts
-- Research & Development
-- Overview
-- Research Team
-- Partners
http://drupal.org/files/primary-links.png
In both cases, "Overview" menu item links to the same node as its parent. This appears to cause the parent item from not displaying and the depth to be flat in Context UI's Condition Menu Trail listing.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | primary-links.png | 75.33 KB | Dustin Currie |
| primary-links.png | 75.33 KB | Dustin Currie | |
| context-menu-trail.png | 102.89 KB | Dustin Currie |
Comments
Comment #1
Dustin Currie commentedOh, haha, another bug. When attaching files, the fielset gives http://drupal.org/files/[file-name] as the path when it should be
http://drupal.org/files/issues/[file-name]. Please ignore the links within the body of the text. They won't work.
Comment #2
eusebius commented+1 Same problem
Comment #3
steven jones commentedNeed to reproduce, and possibly write a simpletest?
Comment #4
steven jones commentedSo, the menu trail conditions and reactions don't really fire off of the menu items at all, but rather the paths of the menu items.
I'm going to say that this is a pain, but its not going to be fixed for 2.x, mostly because it might well break quite a few things.
However, yhahn, looking at the code for the menu stuff in context 3 it would seem that the same code lives there too, rather than actually choosing menu trail items, you're just selecting from the items, whose href then gets stored for comparison in the trail later. I know that this is what is probably needed, but it also produces errors such as this issue.
Comment #5
steven jones commentedLooks like there might be some related code over here: #274577: Context doesn't expand menu's item of primary links block
Comment #6
yhahn commentedWill think about this... might not be able to fix.
Comment #7
yhahn commentedhttp://drupal.org/cvs?commit=400296