wet-boew / wet-boew-drupal

Drupal variant of the Web Experience Toolkit (WET)
137 stars 74 forks source link

MegaMenu Link in new Tab #1717

Closed lpgascon closed 8 years ago

lpgascon commented 8 years ago

Any easy way of forcing the Mega-Menu to open certain links in a new Window/Browser Tab?

Can the mega-menu items also contain icons or only text?

Thanks

sylus commented 8 years ago

We align to how WxT renders there menus so if it is supported by them we can support it as well. So i might ask that question on the wet-boew repo.

As for the mega menu items the recent dev has proper support for and can also use the icon_menu module for glyphicon support.

lpgascon commented 8 years ago

Thanks for the feedback. Opening menu links in new tabs would be really useful for external links.

I’ve installed the menu_icon module but doesn’t seem to show up in my menu items config yet. I’ll try to troubleshoot this and play with it.

Thanks

From: William H [mailto:notifications@github.com] Sent: September-21-15 11:39 AM To: wet-boew/wet-boew-drupal Cc: Louis-Philippe Gascon Subject: Re: [wet-boew-drupal] MegaMenu Link in new Tab (#1717)

We align to how WxT renders there menus so if it is supported by them we can support it as well. So i might ask that question on the wet-boew repo.

As for the mega menu items the recent dev has proper support for and can also use the icon_menu module for glyphicon support.

— Reply to this email directly or view it on GitHubhttps://github.com/wet-boew/wet-boew-drupal/issues/1717#issuecomment-142018267.

lpgascon commented 8 years ago

menu_icon module screws up with the CSS of the menu items row spacing and it only does background images (no inline). But it was worth a try.

sylus commented 8 years ago

Hey sorry not menu_icon but icon_menu. The icon menu module is a submodule of: https://www.drupal.org/project/icon . We use that module with our bootstrap theme in the 4.x branch. This functionality is only in 4.x though.

lpgascon commented 8 years ago

icon_menu got it. Seems to work! Now i only need to figure out how i can create personalized icons as i don't need a bank of icons. (we have our own)

sylus commented 8 years ago

You should use the fontcustom library to convert your icons to a format support by icon_menu. Then it is just a simple hook function to get it registered. http://fontcustom.com/

lpgascon commented 8 years ago

Thanks, this is a bit too much work to get it working as i'm running the distro in a Windows Environment. I found some windows converter that may work but the instructions and scripting is quite intense potentially unstable. Hopefully there will be a better drupal module for customized icons in the future.

sylus commented 8 years ago

fontcustom isnt a drupal module just a way to get your images to use proper glyphicons workflow. You can just run the tool in a linux environment separately then copy the build to your windows box or I am sure windows has a tool that can accomplish the same thing.