CommentFileSizeAuthor
#49 2395797-49.patch7.75 KBeugene.brit
#45 2395797-45.patch9.28 KByogeshmpawar
#45 interdiff-2395797-43-45.txt1.74 KByogeshmpawar
#43 2395797-43.patch7.76 KByogeshmpawar
#33 2395797-33.patch7.89 KByogeshmpawar
#29 core-2395797-29-allow-configure-toolbar-orientation.patch8.12 KBcgomezg
#28 Screen Shot 2018-11-22 at 5.02.18 PM.png124.92 KBcgomezg
#28 core-2395797-28-allow-configure-toolbar-orientation.patch0 bytescgomezg
#25 2395797-14-allow-configure-toolbar-orientation.png60.36 KBFranciscoLuz
#14 2395797-14-allow-configure-toolbar-orientation.patch8.78 KBtemkin
#5 navbar-default-to-left-2395797-5.patch1.17 KBmsound

Issue fork drupal-2395797

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Elijah Lynn’s picture

Elijah Lynn’s picture

Elijah Lynn’s picture

Basically, I want to know if a patch would be accepted. If so I can roll it.

hass’s picture

Status: Active » Postponed

This module is a backport of D8 core. I think you need to get the feature in D8 core first.

msound’s picture

I understand that to have this merged I need to do this in D8 first. However, I thought I'd throw in the patch here anyway. This patch works with 7.x-1.x-dev.

hass’s picture

Project: Navbar » Drupal core
Version: 7.x-1.x-dev » 8.0.x-dev
Component: User interface » toolbar.module
Status: Postponed » Active
Issue tags: +Needs backport to 7.x

Moving for decision making to D8. Please move back once done or just close if we do not like to implement this at all.

xjm’s picture

Issue tags: -Needs backport to 7.x +Needs backport to D7
Wim Leers’s picture

Title: Default navbar to left » Default toolbar tray to vertical orientation
Issue tags: +Usability

The reason is that a lot of people don't want to make multiple page requests to get somewhere, especially on mobile.

This is exactly what D8 already does.

Are you basically asking to do this always? Having used this myself for over a year, I personally think that that would make sense. But only for the "admin menu" toolbar tray, not for the other toolbar trays (e.g. shortcuts & user).

Elijah Lynn’s picture

Yes, I am asking for it to always be on the left. Even when not on mobile. If I load in mobile then the menu floats to the left but if I am on desktop it floats to the top. I want it to float to left by default on mobile or desktop.

update: I agree that it should just be for the Admin Menu toolbar tray, not the shortcut and user.

Bojhan’s picture

Status: Active » Closed (won't fix)

We already made the decision in #1137920: Fix toolbar on small screen sizes and redesign toolbar for desktop. We decided for horizontal. The opinions on preferences around this are probably split 50/50. We made the decision to go for horizontal, I see no reason to revisit that decision.

Regarding vertical/horizontal orientation. I'd interpreted the designs to indicate that the horizontal orientation is the default. On small screens, the orientation will switch to vertical. That breakpoint will be configurable.

If a user pegs the orientation to vertical for a tray (they will all -- administration menu, shortcuts, user actions -- be peggable, potentially, at least in the code), then the tray will remain vertical across all screen sizes.

temkin’s picture

Status: Closed (won't fix) » Needs work

If the opinions are split 50/50, wouldn't it be logical to allow site admins decide what should be the default layout. So far each client I showed this toolbar to asks to have it in vertical layout and that's the override I have to do and maintain for multiple sites.

I haven't looked into the module code yet, but I think it should be possible to move that setting into a variable, rather than having it hardcoded.

What do you guys think?

Juanpgs’s picture

#5 It works fine!

xjm’s picture

Title: Default toolbar tray to vertical orientation » Allow defaulting toolbar tray to vertical orientation with configuration
Version: 8.0.x-dev » 8.2.x-dev
Issue tags: -Needs backport to D7

Retitling to that scope and moving to 8.2.x where features go. Thanks!

temkin’s picture

Here is a patch that adds configuration form for Toolbar module that allows to set a default orientation - vertical or horizontal. I've tested it myself and seems to be working fine.

I must tell that JS logic probably needs to be refactored. It's pretty confusing that a lot of logic is tied to VerticalLock parameter. I think it should be more generic and rely on user selected orientation. If user hasn't selected anything, then it can fallback to a default setting.

Status: Needs review » Needs work

The last submitted patch, 14: 2395797-14-allow-configure-toolbar-orientation.patch, failed testing.

temkin’s picture

Status: Needs work » Needs review

Seems like tests failed in the unrelated module. I've run tests in my local environment and they passed successfully. Marking for re-testing.

The last submitted patch, 5: navbar-default-to-left-2395797-5.patch, failed testing.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

temkin’s picture

I wanted to bring this to attention as I have a number of requests to have Toolbar with vertical orientation by default on both Drupal 7 and 8. As I understand before it gets to Drupal 7 it needs to be approved for 8 first. Can anyone review the above patch? Thanks!

Wim Leers’s picture

@temkin: The Toolbar in Drupal 7 and 8 are vastly different. If you're referring to the D7 backport of the D8 toolbar, that's https://www.drupal.org/project/navbar, and that can happen any time.

temkin’s picture

OK, thanks. I was under the impression that it needs to be implemented for D8 first and then backported to D7. Probably because of the comment #6. If that's not the case, I'll open a ticket in Navbar's module issue queue and submit a patch there. We can keep this issue specifically to D8.

Any chance it can get reviewed?

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

FranciscoLuz’s picture

Toolbar module has gone through changes since patch from #14 was submitted.

Some bits and pieces of code have moved around and portions of what previously was residing in toolbar.js now lives in a file called toolbar.menu.js

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

jcmartinez’s picture

Would it be possible to move this into its own module and fix it so that it woks with the latest version?
Or, add a configuration to the core to give administrators the choice?

cgomezg’s picture

Hi, I just upgraded the patch from #14 for 8.5.x
But is not working for me

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

paper boy’s picture

Patch from #29 works for me on a fresh Drupal 8.7.2

yogeshmpawar’s picture

Assigned: Unassigned » yogeshmpawar
yogeshmpawar’s picture

Assigned: yogeshmpawar » Unassigned
Status: Needs work » Needs review
FileSize
7.89 KB

Re-rolled the #29 patch because it's failed to apply on 8.8.x branch.

YahyaAlHamad’s picture

Our company made a new design for the toolbar. If you would like to check it:
https://www.drupal.org/project/seeds_toolbar
it's not perfect, but it is vertical.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

AlexBorsody’s picture

#29 works for me. Make sure you clear all caches.

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

dsdeiz’s picture

Status: Needs review » Reviewed & tested by the community
dsdeiz’s picture

#33 works for me.

dww’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs reroll, +Needs issue summary update

Needs work b/c:

  1. No longer applies to 9.3.x
  2. Needs a summary.

There’s a pile of issues trying to add toolbar settings. Eg

#2464193: Provide configuration options for toolbar menu

Tried to add that as related but I’m on my phone and it’s not working.

Point is: if it seems weird in here to add a whole new settings form for 1 knob, we’ll have a lot of other knobs we could add to it soon. 😉

Thanks,
-Derek

yogeshmpawar’s picture

Re-roll of the patch against 9.3.x & keep it in Needs Work as it needs issue summary update.

yogeshmpawar’s picture

Issue tags: -Needs reroll
yogeshmpawar’s picture

Trying to resolve CS issues.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

eugene.brit’s picture

Re-roll for 10.0.x

rpayanm made their first commit to this issue’s fork.

rpayanm’s picture

Status: Needs work » Needs review

Please review.

dww’s picture

Status: Needs review » Needs work

Testbot can’t run the tests.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.