Discussions

Show user tabs on orders page

When a user goes to 'Orders' on his account/user page (user/#/orders), and then clicks on one of the order numbers to see the order (user/#/orders/#), the user tabs at the top dissappear (view/edit/orders).

The tabs should surely stay there since he/she is still under the orders section and still working on his/her account.

Are there any workarounds for this? Or have I maybe got a setting wrong somewhere?

Thanks for the great work on this module!

Posted: Oct 29, 2012

Comments

jacquesroux on October 29, 2012

Ryan posted this on drupal.org, and it answere my question thanks!

"Tabs on Drupal pages are based on URL arguments. The menu router system is looking for sibling menu items and seeing if they're defined as local task tabs. You get tabs on the Orders overview page, because there are sibling menu items:

user/#/view
user/#/edit
user/#/orders
But once you hit the individual order page, you're now at:

user/#/orders/#
And there are no longer any sibling menu items at that level. There's not much we can really change here, as it's just how Drupal's menu system currently works. The best we can do is ensure the breadcrumb leads back to the Orders page (which it does). I don't know of any way to keep the tabs there outside of custom development."