Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Jun 2011 at 11:25 UTC
Updated:
3 Sep 2015 at 16:02 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
merlinofchaos commentedYes, that is the design. There's no way around it.
Comment #2
kenturamon commentedHow about this? I've made the options array key in view_plugin_style_jump_menu a hash of the field & path appended by the plain path, and updated jump-menu.inc, & jump-menu.js to pay attention to the change where it exists.
Comment #3
mrfelton commentedHope you don't mind @merlinofchaos but I'd like to reopen this issue as it is something of a problem. I believe there are many legitimate use cases where it is desirable to have multiple jump menu items linking to the same url, and it just not possible to do this currently.
Attaches is the views part of the patch from @kenturamon's zip file. This obviously depends on the corresponding patch to be applied to ctools, for which I will open up an issue and post the patch over there.
I think that the approach taken here is pretty clean and effective, and should have no adverse effects.
Comment #4
mrfelton commentedUpdating version to D7 dev.
Comment #5
mrfelton commentedCross referencing the ctools issue/patch #1224340: Duplicate option support for ctools jump menus
Comment #6
dawehnerPersonally i would have moved the md5 to the end for accessibility. The important stuff should be at the beginning, nevertheless this would require a change in ctools as well.
Updated the patch to work for summary as well.
Comment #7
dawehnerCommited the last patch. Before written a patch which checks for the amount of items + the actual titles.
Commited to 7.x-3.x and 6.x-3.x
Comment #9
jrust commentedJust a heads up that this causes the jump menu to be broken in 6.x-3.x-dev because the associated patch for ctools is still to be ported. Until that happens I've changed:
$key = md5($path . $field) . "::" . $path;back to:
$key = $path;Comment #10
jrust commentedThe patch in #6 updated setting the default value for the jump_menu_summary, but not for the jump_menu. The attached patch fixes the jump_menu style to correctly set the default value. It's against the 6.x-3.x branch, but should be easily ported.
Comment #11
monotaga commentedjrust, when you say "the associated patch for ctools..." are you referring to #1224340: Duplicate option support for ctools jump menus?
Comment #12
broncomania commentedI run into a problem now and i think this is point where it starts. I open already a issue about this problem here http://drupal.org/node/1306934 I think now my post is a duplicate.
How can this problem be solved? I used for the moment #9 to fix my problem but thats pretty not the right way isn't it?
Comment #13
jrust commentedmonotaga, that's the one.
Comment #14
peterpoe commentedTested #10 on the 7.x branch, default value with jump menu displays works fine.
Comment #15
dawehnerThanks for the patch! Commited to 6.x-3.x and 7.x-3.x
Comment #16
jeanj commentedI ran into the same problem with the added hash and found that there was no way to change the created option value link ... wouldn'd it be a better idea to use the "output" (name) rewrite field to build nothing but the option text and the "link" rewrite field to build the option value?
Comment #18
jelo commentedAlthough the issue has been fixed in views, it appears that the ctools patch has still not been applied. I run views 6.x-3.0 and ctools 6.x-1.10 (latest versions each). I configured a view to use the jump menu display style which now produces "value" output including the hash. Ctools does not clean up this added hash which results in a broken URL pattern in the form of hash::path. #9 shows how to hack the latest views version to fix this.
Should this not have been rolled out together instead of accepting that views and ctools now are not able to show a jump menu in D6 without customization?
Comment #19
amklose@jelo I can vouch for the fact that this is still an issue in 6.x-1.13. I have a jump menu for a blog archive that inserts the year + month argument in the url. However, it was also inserting the hash before the url snippet which led to a 404. I wasn't sure why the hash was being added to the $select key, so in jump-menu.inc, I did some string magic to rewrite the keys to just be the url.