Questions tagged [navigation]

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

511 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
1answer
884 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 ...
1
vote
0answers
797 views

Insert custom html into menu

I am trying to insert the languageswitcher block and login block into the menu. So basically I am after inserting custom html into menu or change the html of a menu link. Looks like the best place ...
1
vote
0answers
69 views

Multiple instance of same block and contextual widget

I print the same menu twice in my region (to handle responsive design). Here is a part of my region--header.html.twig with my two topnavigation menus: <div class="header-main-top-wrapper"> ...
1
vote
1answer
101 views

How to make node hierarchy with siblings and child pages

I want to make a node hierarchy menu which will display the child pages and siblings if child pages don't exist. I want to have the following structure parent child child child or parent ...
1
vote
0answers
20 views

Convert existing link into node tab

I'm using Organic-Groups on my site and I would like to represent the unsubscribe from this group link as a tab after the View tab. I am using the following code: function mymodule_menu(){ $...
1
vote
0answers
13 views

Menu Rendering before styles are applied. Webkit Browsers only, possible reasons why?

I am working on a project for a client. The site is large, with a lot of scripts and for non-disclosure reasons I can't add a link. The probably seems to be only in Webkit browsers. Before the page ...
1
vote
1answer
68 views

Can I add php code on title of a link?

I have this problem: I created three content types. Actor, author and musician. An user can modify own actor, author and musician profile, if his role is one of these. A user can have more than one ...
1
vote
0answers
80 views

Sub-menu does not showing up despite “expandend” option is on

I have an menu that has some sub-menu: For the top option of sub-menu I've selected "expanded" option: My .twig for menu looks like this: {{ menus.menu_links(items, attributes, 0) }} {% macro ...
1
vote
3answers
733 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 ...
1
vote
1answer
568 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 ...
1
vote
1answer
43 views

Using variables in Drupal

Would appreciate any assistance of how to handle configurable URLs for each environment. The links need to take the user to a different URL depending on the environment the site is installed in. In ...
1
vote
0answers
36 views

figuring out menu token path for file field

I'm trying to use menu token and file (field) path to get a path to display a node's PDF field from a menu link. I tried with the tokens: [node:field_pdf]/[file:url] with and without relative path ...
1
vote
1answer
51 views

NL and other languages visible, but English site not visible and showing error after translating news item

I get below error when try to reach my site (see screenshot): The editor of the site made a news item and translated it to English. Now the English (default) site can't be reached. But the other ...
1
vote
0answers
52 views

theme_menu_tree override single link

I'm trying to override the HTML output of a single menu_link only when the user is anonymous. The following code is based on this by deskulu developers. function MYTHEME_menu_tree__secondary(&$...
1
vote
0answers
40 views

How to rearrange admin menu

I have made a few admin items for our site and we would like to collapse them into a series of nested menu options. I've found all our menu items, and changed the path to be nested properly. I've ...
1
vote
0answers
35 views

submenus not expanding some times

As the title suggests. We have a menu with several top level items and then sub-menus under each element. All the children for a given parent should expand when the parent is selected. It works... ...
1
vote
0answers
67 views

Rule: Auto Menu link for child via entity reference

I have child nodes which are assigned to the entity reference of the parents. I want to create a rule which assigns the child node menu items to the parent node menu link. I have many parent nodes, so ...
1
vote
0answers
196 views

Change block configuration before render the block programmatically

I have a view that display some nodes and some of this nodes have a menu voice connected to them with sub menus. main menu: -node 1 [mid:407] --node 2 --node 3 -node 4 [mid:219] --node 5 I want ...
1
vote
0answers
39 views

How to properly implement sections in site

I am about to create a Page with a Main Menu which is about three levels deep. Each item at the first level should divide the whole page into visual distinct sections. What would/could be the best ...
1
vote
0answers
78 views

How can I add a (very) simple “Insert dialog” link?

I'm currently developing a social networking website and need a clean and simple editor for user content creation. I've choosen CKEditor (https://www.drupal.org/project/ckeditor) as it is integrated ...
1
vote
0answers
32 views

Place and Style Menu

In D7 I could place and style a menu with a few lines in a mytheme_preprocess_HOOK function. for example: $variables['page']['navigation'] = array( 'section' => array( '#type' => '...
1
vote
1answer
82 views

Inserting submenu to main menu using jquery - good idea?

I have main menu showing only first level links (3 items). **Home** **Themes** -green -blue -red **Jokes** -long -short -medium I am using Menu block module (to show second level items) + Power menu ...
1
vote
0answers
364 views

How do I get a custom help text on a link field if title of the field is hidden?

I created a link field, and disabled its title, put some custom help text for the link field. It only shows the default help text underneath, like below but with no custom help text. Start typing ...
1
vote
0answers
19 views

Links in view do not lead to current language content

I have a Drupal 7.50 site with menu and content on the left side and a list of nodes on the right side. The Menu has a language switcher. When language changes the links from the nodes on the right ...
1
vote
0answers
31 views

Entity Admin UI as Node Tab Link

I have an entity "metric" that has specified the following admin ui config: 'uri callback' => 'metric_entity_uri', 'admin ui' => array( 'path' => 'node/%/config', '...
1
vote
0answers
25 views

Main menu level 2 template

I have my main navigation menu setup with 2 levels with only one level expanded by default. I then placed a second version of the menu in a different block and set the Initial Menu Level to 2 so on ...
1
vote
1answer
94 views

If linking entities with a multi-value entity reference field, what about properties of the association?

In this thread I need a link from base table to join table it was suggested that it is better in Drupal to join two entities with a multi-value entity reference field than to use a relational style ...
1
vote
0answers
108 views

Empty parent menu item

I have created a new content type on Drupal and I chose it will be available in which menus. But when I add a content for my new content type and after I check the "Provide a menu link" checkbox, the "...
1
vote
0answers
67 views

css last clicked link menu/no menu

I have searched and searched and found many possible solutions but none of them work for me. I have a very odd website setup (the client wants it that way) Setup (all next to each other): Main menu (...
1
vote
0answers
51 views

Force all URLs to be absolute

I have installed the following modules: Pathologic Advanced Aggregation I implemented hook_link_alter() where I set $variables['options']['absolute'] = TRUE;. This helped with fixing: All links ...
1
vote
0answers
803 views

How to create private links to unmanaged files ?

I have created my own module with custom block to display private downloads to authenticated users. The downloads files are provided by 3rd-party system and stored in private folder of Drupal ...
1
vote
0answers
33 views

No class=“active” on just some Pages

I'm on Drupal 7.43 and are using Nice Menus 7.x-2.5. I just noticed a problem but can't say it is connected to Nice Menu. When I under admin/structure/menus manually creates menu links, not all links ...
1
vote
0answers
270 views

Problem with adding contextual link with option in yml file

In a custom module, I want to add a contextual link for all nodes, using the mymodule.links.contextual.yml file. It works well with a route without options: mymodule.test: route_name: entity.node....
1
vote
0answers
20 views

Add content are not correctly re-parented

I decided to change Add content node/add/% from Navigation menu to Management menu. My prob is : Add a Content type Go to Add content and my new Add content's child link doesn't appear. It appears ...
1
vote
0answers
302 views

Change TB Mega Menu Dropdown to Toggle

I want to change TB Mega Menu Dropdown on hover to Toggle on click. I tried inserting attributes using this jQuery $("li.dropdown.parent > a").attr("class", "dropdown-toggle"); $("li.dropdown....
1
vote
0answers
107 views

How to show only top level menu name in Superfish

As seen "Departmental Information" is first level sub menu under top level "Staff Menu". But I want only to display "Staff Menu" and it should expand only on hover. How ...
1
vote
0answers
696 views

Accordion is not working in field group module

I have configured the Field group module for Drupal 8 to manage the display of my node into accordion. I added an accordion wrapper, and assigned an accordion item into it. Lastly, added the fields ...
1
vote
0answers
38 views

How to get sub-menus of current node?

I have created a basic page - "About Us" and provided it a menu link under Main menu. Now I have created 3 more basic page as sub-menu of About us. So, the hierarchy is like: > Main Menu > &...
1
vote
0answers
75 views

How to use superfish on commerce kickstart

Anyone can tell me the steps needed to implement superfish on commerce kickstart 2.32 ? I have read this (Creating a menu while categorizing my products) but I failed.
1
vote
0answers
29 views

How do I create a menu based on 2 different vocabularies?

I'm new to Drupal 7 and I'm trying to create something simple but I can't work out how to do it. In short, I'd like to create a dropdown list within the main menu that shows all my venues categorised ...
1
vote
0answers
74 views

Views pager with anchor on another page?

I'm creating a page that have two sections, one with an image, as a "presentation", and other at the bottom that has a list, created with a View. That list have pagers created with the "Views Simple ...
1
vote
1answer
71 views

Alter main menu button text and URL path depending on OG Role

I know you can change menu links depending on drupal based roles (authenticated, non authenticated...) and by using Rules module also. I am using Organic Group roles and I am having difficulties in ...
1
vote
0answers
24 views

Views Accordion Closes When I Hit Next On Pager On Interior View

I have an issue where I have a view accordion and each row on the accordion has a view with a pager. When I hit next on the pager the accordion closes which is a very undesirable effect. Any ideas?
1
vote
0answers
43 views

Additional parameters in check_plain()

I created link field in cck and add the URl like with apostrophe (https://www.sample.com/test's_data/test.pdf). But the View output displayed as (https://www.sample.com/test&#039s_data/test.pdf);...
1
vote
0answers
331 views

Drupal Superfish Mega Menu stacking down

I have superfish menu working but the megamenu part is stacking the last 2 below each other instead of beside, so there is 2 columns and the last column is positioned below the second column instead ...
1
vote
1answer
56 views

Referencing logged user and node relations.

I am trying to solve a problem with no luck: I have 4 objects in Drupal: -Company user (role company) -Mod user (role moderator) -Node Project -Node Person (not a user entity) Company user can add/...
1
vote
0answers
44 views

Responsive design on a page using Accordions

I've been wondering how to make the text on this page (http://confluencenter.arizona.edu/events) stop overflowing into the images. I have tried floating the text under the images, but it is reset by ...
1
vote
0answers
314 views

How to add a div inside a link?

I have a view accordion which works as it should, but I would like to add a play button to the thumbnails images that are inside the thumbnail! I´m thinking: just a empty div inside of the a href, ...
1
vote
1answer
25 views

removing the link in the listings title

I have removed the title node module element from my listings and replaced it with a text field. The problem is that the text field still works as a link. How do I get rid of the link?
1
vote
0answers
595 views

Programmatically add dropdown to administration toolbar

I'm trying to add a dropdown menu to the administration toolbar for my custom module but it is not appearing. I have flushed the cache and disabled/renabled the module but with no avail. I am using ...

1 2
3
4 5
11