Questions tagged [navigation]

Use it for questions about navigation menus and links used in a site.

Filter by
Sorted by
Tagged with
2
votes
2answers
234 views

Views Accordion to be accessible by keyboard

I need the Views Accordion module in Drupal 7 and what is in it to be accessible by the keyboard. When you are tabbing, it skips it completely. Also the screen reader does not recognize the closed ...
0
votes
1answer
564 views

Symbolic links and the file_scan_directory() warning

I wanted to use the following symbolic link in my root directory: $ ln -s /data1/public/cases/ DownloadData Such that when users go to www.example.com/~user/DownloadData/file they are rerouted to /...
3
votes
1answer
693 views

Providing menu route parameter values from url

Suppose I have the following route in my ej.routing.yml file: ej.form.user.profile: path: '/user/{user}/ej_profile' defaults: _title: 'EJ Profile' _form: '\Drupal\ej\Form\User\ProfileForm' ...
1
vote
1answer
949 views

Add menu links to custom generated menu

I am working on a custom Drupal 8 module which generates a menu. Refer Create a new Menu in Drupal 8 programmatically for details. I have the menu now, but when I try to add custom menu links to it, ...
1
vote
1answer
55 views

When I clear cache, my menu ordering seems to go out of order

When I clear cache, especially on high traffic times, my menu seems to go out of ordering. Usually I don't see any log messages except for one time: Message Drupal\Core\Database\...
0
votes
1answer
886 views

How to add a nolink menu item

I'm creating a menu item for my main navigation bar. It looks like this: module/module.links.menu.yml: top.link: title: 'Operations' description: 'Operations' parent: main menu_name: main ...
0
votes
1answer
27 views

Menu setting not visibile for other roles on Node Form

In Drupal 8 I am creating Editor role with limited access, but the Editor cannot see "Menu Settings" while creating or editing content, this would be helpful when Editor add the node to the ...
1
vote
3answers
54 views

Custom Module to remove User Menu Tabs

I'm hoping someone can take pity on me because I just can't seem to figure out how to make a simple module to remove, or hide some tabs in my user pages. I read the docs on making custom modules, ...
1
vote
1answer
1k views

How to add a tabbed menu on group main page (panel)?

I managed to get panels working with og 7.x-2.1 following: - http://modulesunraveled.com/organic-groups/part-3-organic-groups-layout - http://www.initsix.co.uk/organic-groups-panels-and-views-drupal-7 ...
5
votes
2answers
599 views

Adding Contextual Links to Ctools Custom Content Type Plugin

Ctools custom content type called Custom Panes shows contextual links when you have access permission and you hover over the pane (much like a block shows the contextual links) which allows you to ...
1
vote
1answer
839 views

Render Custom Menu Block from Menu Tree Array of Links Programmatically

Here's what I have: A custom menu (side nav) that mimics the main/secondary menu tree which shows the entire subtree of the root menu item (Dine, Play, Stay) you're under. This sidenav can be ...
0
votes
1answer
345 views

Multiple aliases per node (and active trail)

Our site is split down the middle for tenants and landlords. But we have content the is the same for both such as "how to report antisocial behaviour". User would normally navigate something like "...
0
votes
0answers
58 views

How to organize the summary of a book?

I created a book with the module provided by Drupal 8, but I am unable to organize the pages of the book correctly in a view. I want to organize the book in this way. In the left block, pages and sub-...
2
votes
1answer
584 views

Add class in sub menu

I am trying to convert html to Drupal 7 theme. function theme_menu_tree($variables){ return '<ul class="my-class-1">' . $variables['tree'] . '</ul>'; } simply returns the entire menu ...
1
vote
1answer
713 views

Possible parent values for parent of links

I am trying to create links in my Drupal 8 module, following this tutorial. So far, I have a link as follows in my module.links.menu.yml file: module.admin_settings: route_name: module.adminForm ...
0
votes
1answer
34 views

Tabs: invalidating cache tags does not lead to a rebuild of the tabs

I have a custom route defined with a custom access check. Apart from some more checks one of the rules for accessing the path is that a specific custom entity exists. The access check does the ...
0
votes
2answers
696 views

JQuery Accordion closes unintended when ajax-link from inside gets response

I'm working on a page where a user can click on ajaxified links inside a JQuery-Accordion-Widget. Currently every time a link is clicked and the response is loaded, the accordion gets closed and it ...
0
votes
1answer
903 views

Add uid to existing menu link

I have a custom menu MyMenu and I have four menu items. What I want to do is to add the current uid as a parameter at the end of the link. In D7 I could use menu_tokens module which is not available ...
3
votes
3answers
2k views

How to add onclick event to a link?

I need to create a link, which when clicked should be able to set a session variable. I have used l() function to create the link and tried this but this is not working. 'name' => l(t($n['name']),...
1
vote
2answers
821 views

open image files in new tab in views

I'd like to open my image fields which are linked to file in new tab. In veiws I mean. I set the image field as: Rewrite the output of this field -> checked Output this field as a link -> checked &...
0
votes
0answers
22 views

Adding custom module path to admin menu

I created a custom module with a configuration settings page. It works fine, but I can't get it to show up under the admin configuration menu. I think the problem is I specified system....
2
votes
1answer
1k views

Defining module.links.action.yml with route parameters

How can I pass dynamically route parameters to module.links.action.yml? My code of module.links.action.yml: module.group_apply: route_name: module.group_apply title: 'Subscribe to group' ...
0
votes
1answer
536 views

Hide block on specific page through custom contextual link

We usually require to hide some blocks on specific pages for which we need to goto configure block page and add the URL of the page where we do not want to display a block. Instead of going to ...
2
votes
2answers
34 views

What is the replacement for menu_link_load()?

Drupal 7 has menu_link_load() to load a single menu item. What is the Drupal 8 equivalent?
1
vote
2answers
2k views

How do I add local tasks menu to a views page display

I have created a views page display that has the path /node/%node/sessions, contextually filtering by content ID. It also creates a "menu tab" called "Sessions". Therefore when I got to node/12 I ...
2
votes
4answers
3k views

use-ajax class for ajax link not working in dynamic content load

use-ajax class link not working when i load new content using custom ajax code, which has the use-ajax class links. I use normal jquery ajax to load the content because, i have drag and drop ...
1
vote
1answer
17 views

Some pages hide content unless “Read more” is clicked

If I have multiple pages on Drupal, some show the full page, and others say "Read more" and will only show the whole page when it is clicked. It doesn't seem to have anything to do with the ...
0
votes
1answer
374 views

Making menu wrapped in nav tag

I've got problem with making main-menu wrapped in element. I've tried: Using hooks in template.php like: function koko_menu_link_main_menu($variables) { /* For block override */ $output = '<nav&...
3
votes
2answers
1k views

Show menu link descriptions for a custom navigation menu

I have the following navigation, displayed in page.tpl.php: theme('links', array('links' => menu_navigation_links('menu-site-navigation'))); There are four navigation elements that show up. I ...
3
votes
1answer
412 views

Link tags in template file auto closing.

I’m having an issue wrapping a link around some output in a template file. I have the right template file; and I can put text like ‘start here’ and ‘end here’ and it prints out where I want the ‘a ...
0
votes
0answers
13 views

How to add a content navigation menu based on taxonomy or parent relation?

We are new to Group module and we can't figure out how to create a content navigation menu/tree we want to place to the left of the group page. We are evaluating generating this menu by taxonomy or ...
1
vote
3answers
637 views

Get URLs of taxonomies terms in Link field

I am having a link field in drupal 8. It can accept both internal and external links with autocomplete feature. But it works only with nodes means with content but i want to use it with taxonomy terms ...
0
votes
2answers
966 views

Problem with menu position module

I have a menu like this: In the first sidebar you see the main menu with links. The second sidebar is a block that is visible on pages that begin with stocklijst/. The link in the first sidebar ...
0
votes
1answer
1k views

How to add active class to title which is loaded via views in block

I have created content type XXX, via views I collected all titles of XXX content. That all titles works as links, I want to add active class to title which was clicked in block. It should works as ...
1
vote
1answer
1k views

Transfer (export/import) url aliases and menu links automatically

I want to transfer/synchronize url aliases and menu links from one site to another. Is there any way (drupal module, drush command, script) to do it automatically? The module menu_import looked ...
0
votes
0answers
17 views

How to properly configure the Mega menu module?

first of all I would like to point out that I speak very poor English, sorry in advance for the poor quality of the translations... (Google Translate) I recently encountered several problems with the ...
30
votes
9answers
64k views

How do I create a link?

Say I am extending The blockBase class to create a custom block, and I am implementing the blockBuild method to create some markup for my block. Something like this: class YourModuleBlock extends ...
1
vote
2answers
2k views

add link in Colorbox caption

In my gallery, what i write as image title is the caption of my image and that is great. Now I would like to add a link (external url) to my caption, how can i do that? I already try to write normal ...
1
vote
2answers
557 views

User specific permission to add links to a menu

When I create a content type, e.g. 'Basic Page' and I want to add a link to a menu I do usually the following: Menu settings -> Provide a menu link -> choose a menu and its position of the link there ...
0
votes
1answer
386 views

How to make Adaptivetheme dropdown menu show on start page?

I'm using Drupal 8 with an Adaptivetheme subtheme. The horizontal navigation menu resides in the leader board region. Some menu entries have submenus, but they do not show on the start page. One has ...
3
votes
1answer
860 views

Taxomony menu - show all, vocabulary link are disabled

I have a custom vocabulary which looks something like this: Shops (vocabulary name) Sporting Goods Auto Parts Computers Etc. (15 items in total, 1 level) My goal is to create a menu link to Shops ...
0
votes
1answer
344 views

How can change RealName / User account link destination in D7

I'm using RealName module in D7 to show real names on nodes and in comments and would like to link the real name [user:first-name] [user:last-name] to a custom content type (a 'profile' page), instead ...
0
votes
1answer
2k views

Superfish module fix with responsive menu module

My theme is responsive barkit. My main menu do not have drop down menu feature.So I install superfish module,Great now I able to set drop down menu. Now come to mobile. I want to create same as the ...
1
vote
1answer
561 views

Missing bottom level item when a node is linked to two menu objects

I have been trying to create a custom menu block which shows a number of menu items with images on the current level. I am having an issue where the active trail array doesn't return an menu item for ...
0
votes
0answers
10 views

How do i add an attribute to a certain script tag (my mobile navigation)

my problem is, that i have to add the attribute "data-pagespeed-no-defer" to the script tag of my mobile menu. i use responsive menus which produces the following tags (if advagg is disabled)...
3
votes
1answer
2k views

Why does jQuery slideToggle revert back to initial hidden state after running?

I have a Superfish menu and a simple jquery slideToggle animation attached to each menu item. I am using Drupal 7 & the Superfish module. The idea is that on click it will show the body content ...
0
votes
2answers
4k views

How to add image field to main navigation menu item

I am having a problem using MYTHEME.theme file to add image field in the menu item object. I need to be able to specify an image for each menu link/item! function HOOK_entity_base_field_info(...
0
votes
0answers
31 views

Administration menu links are incorrect

I installed drupal 8 using composer, which installed at location /var/www/html/drupal8/web. I updated apache root directory to this location, which allows me to access the site at mysite.com (rather ...
0
votes
1answer
453 views

How can I increase the 128 character limit of a menu path?

I know there are patches to core, but they were never backported to Drupal 6 from what I can tell. Increasing path length to 255 chars Menu path length is limited by the UI to 128 characters How ...
1
vote
1answer
685 views

Content edit links?

I'm new to Drupal 8 and can't figure out a way to show the edit contextual links for content displayed through the Views module. This was simple in Drupal 7, but in Drupal 8, a view only shows the ...

1
2 3 4 5
31