Closed (fixed)
Project:
Webform
Version:
7.x-4.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Aug 2014 at 16:39 UTC
Updated:
13 Dec 2016 at 11:06 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
danchadwick commentedComment #2
danchadwick commentedUpdate. I've spent some time looking at this. Webform tries very hard to create breadcrumbs where the webform is as if it were directly under the home menu, at the top of the the menu hierarchy. It then tries to infer what the right breadcrumb is. And it puts the title of the webform into the breadcrumb, even when that is the title of the page. In short, it is making a bunch of changes to the breadcrumbs, not entirely positive.
The better action is to set menu item of the current page to be as if it were node/NID. The creates the correct breadcrumbs and expands the menu. It does not set the active class of the node's menu item, but it does set the active-trail class. If desired, CSS could be used to highlight the active menu item. At least the menu is expanded.
The breadcrumbs are set in the following situations:
I will continue to investigate and test. I see some different behavior for submissions when the webform in in the menu somewhere.
Comment #3
danchadwick commentedDesired behavior:
Form completion confirmation page. The menu path is set to the node and the node title is added to the end of the breadcrumbs, since the confirmation page isn't the node page. The behavior is identical for the default menu path (home / webform node title) and when the node is in a menu and has a preferred menu path (home / path / to / node / webform node title).
Webform node and its tabs. Removed special processing for results tab. The breadcrumb is now the Drupal default, which is to include the node title when you aren't on the default View tab. I don't love this behavior, but it's what core does. So the webform-related tabs behave the same as the core Edit tab. Core properly provides the preferred menu path, if there is one.
View/Edit/Delete submission. I now see the wisdom of the current implementation. The idea is to pretend that the submission in in the menu hierarchy under either the results or submissions. The path is home / [optional preferred path to node] / webform node title / Webform results or Submissions, if use has appropriate access.
Resend emails for submission.. Same as above.
Patch for review.
Comment #4
danchadwick commentedComment #5
liam morlandThanks, Dan.
"Webform confirmation" is appearing before the name of the form. It should appear after and maybe just be "Confirmation".
Check the indentation on line 4536.
Comment #6
danchadwick commented@Liam - I'm not seeing this at all. The only place in the code that 'webform confirmation' appears is as the title of the menu for the .../done menu item. The callback for this sets the page title to the node's title.
Are you saying that you are seeing this in the breadcrumb? I would not expect that at all. I think we need detailed steps-to-reproduce.
Comment #7
liam morlandSorry, must be something funny with our install profile. I don't see "Webform confirmation" at all on a standard install. It is working as it should.
Comment #9
danchadwick commentedCommitted to 7.x-4.x and 8.x.
Comment #10
liam morlandThank you!
Comment #11
danchadwick commentedComment #12
torotil commentedBackport to 7.x-3.x.
Comment #15
cornelyus commentedI am working with webform, and just noticed that the page where I see my own submissions, has "lost" it's breadcrumb. Page is
node/%webform_menu/submissionsand is rendered bywebform_results_submissionsinwebform.report.inc.On the commited patch the rendering of the breadcrumb was removed from the function.
It's true that breadcrumb does work for submissions on
node/%webform_menu/webform-results, as said before: Results / Table (but oddly none of the other tabs). Not needed; default menu is adequate. but not for the other page.Can someone give input on this? Should I open a new ticket and post a patch there for this?
thank you
Comment #16
liam morlandThis should go in a new ticket. If you think it is related to this one, you can list it as a related ticket. Please provide steps to reproduce the problem. It would be helpful if you can identify when the breadcrumbs became "lost"; which version or commit.
Comment #17
cornelyus commentedThank you Liam, its here #2835044: No breadcrumbs for "own submissions"