Questions tagged [navigation]

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

513 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1 vote
1 answer
26 views

The "more" link does not direct to the page

I am very new at using Drupal some of the answers I see here seem to be the solution but I don't understand the terminology, so if some could explain in simple terms step by step I would be grateful. ...
ian's user avatar
  • 11
1 vote
2 answers
26 views

Link url paths change from within the 'user' area

I have made a block for a footer which contains 2 simple links. The html code is as follows: <div class="privacyTerms"> <a href="privacy">PRIVACY-POLICY</a>&nbsp;&nbsp; <...
tacss's user avatar
  • 23
1 vote
1 answer
135 views

Why does drupal set a menu link which redirects to a node as the active trail rather than the node's menu link?

I know the question might be hard to understand, so here's the problem: I have this menu: a b c d e f (which has the url "/lorem/ipsum") So, when I click on f the active trail is d > f, just as ...
Alex's user avatar
  • 2,493
1 vote
1 answer
81 views

Open a specific View node with a link in an image

I'm stumped. I'm not even sure how to ask the right questions to search out an answer. What I have is a View of User Account images in a gallery. So far so good. I have another view of all User ...
user26400's user avatar
1 vote
0 answers
309 views

How can I display a token from contextual filter

I am trying to see if there is a way to pass basically a contextual token to a panel page. I have a panel page which displays Views blocks of content types based on contextual filter of author real ...
mark thomasson's user avatar
1 vote
0 answers
154 views

Why is the http prefix being stripped out of my links?

I'm having the weirdest issue site-wide on a Drupal 7.23 website, when I create a link via the Link module or via the WYSIWYG like the following <a href="http://www.example.com">Link text</a&...
user1073319's user avatar
1 vote
1 answer
146 views

Superfish - No output

Hi I can't get Superfish to output anything in Drupal 7 Zen Starterkit Sub Theme I've done everything : Installed the Module For Superfish, Libraries, and jQuery Update, I've installed the Superfish ...
Ant Power's user avatar
1 vote
0 answers
395 views

Rendering Contextual Links after AJAX refresh

We have written a small module that would allow teasers in views reload/refreshed when flagged from inside the contextual links. The names of the flags are 'sold', 'underoffer' and 'withdraw'. The ...
drupalina's user avatar
  • 487
1 vote
0 answers
729 views

Book navigation that expands to child page from a non-linked header

I have a site with many books, some of them fairly large. I have it set up so that there is a book navigation block on the right hand side of the page. I want to be able to expand the navigation block ...
Ein sköpuðr galdra's user avatar
1 vote
0 answers
1k views

How to add a custom Link into $content['links']?

I need help with solving following problem: In my node content type (called "hotel") I'd like to add a custom link to the existing links which are put out via $content['links']. The custom link ...
dercheffe's user avatar
  • 151
1 vote
1 answer
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 ...
dashohoxha's user avatar
1 vote
0 answers
305 views

Print whole expanded Main Menu in page.tpl.php / menu block

I am looking for a way to use drupal_render() to show the entire expanded main menu. Right now I am using this piece of code, but since I use the Menu blocks module from the third level on, all links ...
Marc's user avatar
  • 19
1 vote
1 answer
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 ...
Antonello's user avatar
  • 315
1 vote
0 answers
342 views

Is there any module which list all hyperlinks from content page

Hi i want the list of all hyperlinks present in the page. As i needed to change the path of the all pages to content/mypage/pagetitle. In my case there are around 5o pages and having more than 100 ...
Akshay Sawant's user avatar
1 vote
0 answers
171 views

Positioning menu within header

Just as pictured here, I want to place the superfish menu block under the logo. Didn't manage to find any solution online. Any help? The site works on Drupal 7, Superfish 1.8, superfish libraries 1.1 ...
user12504's user avatar
1 vote
0 answers
123 views

ShareThis module: show titles on mouseover

Is it possible to add the TITLE attribute to the links made in the ShareThis module? So when I hover the facebook image, I see 'Facebook'...
screaming SiLENCE's user avatar
1 vote
1 answer
194 views

Submenu item linked to anchor in parent's content

I would like to have a multi-level menu where some of the menus are links not to a content node, but just for inline anchors specified in the parent node's content source. Is there an already ...
Ashnur's user avatar
  • 163
1 vote
0 answers
649 views

Expandable Tree Menu with parent links inactive

In Drupal 7 I am trying to have a tree menu that the parent items expand/contract on click, but I do not want the parent items to be a page link. I have tried DHTML Module and it does not work how I ...
Dan's user avatar
  • 11
1 vote
0 answers
588 views

Superfish Internet Explorer hover issue

I have an embedded youtube video on the home page (content in "#main"). I have a superfish menu (content in "#menu") which works perfectly in Chrome, FF and Opera and not in Safari and IE (not ...
Q10's user avatar
  • 440
1 vote
1 answer
41 views

Linking Content Types to Pages

I have multiple content types like news, publications, etc and I will like to link them to pages on my site. So when a user posts a news item on a specific page, it only shows up on that page only. ...
Isacc's user avatar
  • 21
1 vote
2 answers
391 views

login_destination module and link with anchor

I want to to use login_destination module to have a link to login screen in comment-wrapper.tpl.php, so after the login, the user came back to write the comment. I have installed and configured ...
linux with a hammer's user avatar
1 vote
1 answer
300 views

Contextual link in Product Display type to allow me to edit the referenced Product?

I have a Product Display node and it has the following contextual links: Edit, Delete and Manage Display. The Edit link allows to edit the Product Display node. I need to add another contextual ...
chefnelone's user avatar
  • 6,227
1 vote
0 answers
148 views

Contextual links for main menu

Hello Drupal enthusiasts, any idea why in my theme I cannot see that gear icon with contextual links for left menu? Module enabled, I see them for views and blocks used in Panels. But in left menu, ...
wtk's user avatar
  • 604
1 vote
0 answers
313 views

edit the order of link appearances in links__system_main_menu

I have setup links through the Drupal 7 web interface, however I am trying to change the order of the link appearances through code. For example, currently I have: ABOUT US CONTACT US ...
chlong's user avatar
  • 653
1 vote
1 answer
126 views

Module to display a website's favicon when displaying a link to it

I'm looking for a module that will display a website's favicon when display a link to that site. Specifically, I want to enable it to one certain Link field. For example, if a user edits a node and ...
Daniel's user avatar
  • 1,245
1 vote
0 answers
66 views

Using HTML Mail Module, how to link items in the email to individual product page?

Using HTML Mail Module, I allow users to send shopping list (items) email as a notification, but when i send that email, the products in the mail are not linked to individual product page. How can I ...
jeckey011's user avatar
1 vote
0 answers
101 views

Disable/Trim DHTML Menu Description Popup

I would like to disable or trim DHTML Menu's description popup. I have checked both dhtml_menu and taxonomy modules. I could not get any clues. Please help me. Thanks
kid's user avatar
  • 11
1 vote
1 answer
71 views

Is there a way to place the "Add new comment" link where I want?

Is there a way to place the "Add new comment" link where I want in my content type? I'd like the link to be between two already existing fields in the content type. Is there some type of way to add ...
user22939's user avatar
  • 163
0 votes
0 answers
25 views

Unable to add Menu Items due to IntegrityConstraintViolationException

Background I recently encountered an error when I try to create a new menu item: Drupal\Core\Entity\EntityStorageException: SQLSTATE[HY000]: General error: 1364 Field 'parent' doesn't have a default ...
GeorgeCiesinski's user avatar
0 votes
0 answers
22 views

Group and Group content menu

I'm trying to display menu from Group page. All is ok with the module Group content menu. But when I'm trying to display the same menu on a subpage of the Group, there is no menu as if the context is ...
Gary's user avatar
  • 1
0 votes
0 answers
45 views

Menu links to media library items

Is it possible to link to media library items such as documents and images rather than be restricted to content nodes? Fairly new to Drupal development and thought this would be fairly standard but ...
Monki's user avatar
  • 1
0 votes
0 answers
33 views

How can I extend the maximum number of items in a menu?

I maintain a website where a particular content type is always displayed with a left-hand navigation menu present. As part of the process for adding new content of this, the site editors add a link to ...
user871967's user avatar
0 votes
0 answers
39 views

How can I show the "content" menu without the "Access the Content overview page" permission?

On a site, I installed the Media and Microcontent modules. I need to set up two user roles, one which should access only the "Media content overview" page and the other one which should ...
Giuseppe's user avatar
  • 907
0 votes
0 answers
15 views

Menu from Views page display using contextual filter taxonomy term

Classified ads site here, Drupal 10.0.7 I have a View page display showing fields from nodes using Taxonomy Term Id as Contextual Filter. So if the URL reads "[domain]/clasificados/8" it ...
Claudia Burman's user avatar
0 votes
0 answers
80 views

New pages not included in main navigation but display in sidebar

I have recently inherited this website and was made aware of an issue where new pages that are added to the main navigation are only displaying in the sidebar. I have followed the steps for adding ...
divspan's user avatar
  • 21
0 votes
0 answers
30 views

How do I link to a Views Page from a systemAdminMenuBlockPage page?

I have a custom module that I have a systemAdminMenuBlockPage in that I'd like to link to various content administration Views pages from. I basically have a custom Configuration menu item doing this ...
River Liver's user avatar
0 votes
0 answers
53 views

Retrieve the name of the menu that a menu link is in

Given the code below i can get the menu link of the current page. What id like to know is how to determine what menu that link resides in. $current_path = \Drupal::service('path.current')->...
Rob Holmes's user avatar
0 votes
0 answers
47 views

Custom menu that handles content type creation

I'm a Drupal 9 newbie, and right now I'm on steep side of the learning curve. I apologize if my question is a bit messy and long. Please bear with me. I'm on Drupal 9.4.8 with a Bootstap 5 theme. I'm ...
FrankDK's user avatar
0 votes
1 answer
27 views

Menu items are displayed differently

I have a multilingual page with the languages Spanish and English. When I edit the menu items in the backend, my default or original language is English. Now the menu links in this menu are always ...
Bavramor's user avatar
0 votes
1 answer
863 views

How do I programmatically alter the links displayed in the main navigation menu?

The main navigation menu in the site I am currently working on has a lot of menus. I want to hide the disabled ones. I figured out that it is rendered via the menu_edit_form form. entity.menu....
Binny's user avatar
  • 886
0 votes
1 answer
73 views

Update menu links based on the site URL

I have URLs defined in links.menu.yml file as "route_parameters: {webform: 'abc'}", but I need to update webform value based on the page URL. If URL has "/type1/" in it, keep ...
Thkr's user avatar
  • 143
0 votes
1 answer
434 views

theme_preprocess_menu is not seeing main menu

Background: I have an event website where I want to hide the event registration menu item when registration for the event is closed. theme_preprocess_menu is not triggering on anything except '...
user13167's user avatar
0 votes
0 answers
584 views

How can I remove or rename tabs from the local tasks block?

I'm using Drupal 9.2.6 with Group module and I want to remove some tabs from local tasks block and rename some of them. I've created the module and placed above code with hook_menu_local_actions_alter ...
Alex Sh's user avatar
  • 11
0 votes
1 answer
126 views

Is it possible to render a region in a menu template?

In my Drupal 8 theme I have a template called __menu.html.twig which gets called in my page.html.twig I am trying to render a region within the __menu.html.twig where I can place blocks. I have ...
May 's user avatar
  • 163
0 votes
1 answer
376 views

Menu item extras field in page.html.twig

I need a background image per menu item. For this I'm using menu_item_extras. I added an image field to menu items. This field I'd like to use in page.html.twig. How can I use this field in this ...
deelite's user avatar
  • 479
0 votes
0 answers
156 views

How to replace the default page and tab of profiles in the user account?

I installed the "Profile" module on my "Drupal 9" website. When I create a profile type, the module automatically creates a tab in the user account for each profile type. For my ...
steevee666's user avatar
0 votes
0 answers
97 views

Create multiple Menu blocks from the same menu

In Drupal 7, the Blocks page contained a link for 'Add menu block', from where you could create multiple menu blocks of the same menu. In Drupal 8, menu blocks seem to be generated automatically, ...
Timmah's user avatar
  • 197
0 votes
1 answer
308 views

Using TB Megamenu, how to close one submenu when I open another submenu?

I'm building a couple of (Drupal 8.9.13 and Drupal 9 based) sites where I use TB Megamenu megamenu module (https://www.drupal.org/project/tb_megamenu) to create the menu. All is working fine on ...
xax's user avatar
  • 47
0 votes
0 answers
79 views

Add Image to parent item smartmenus

I have created a dropdown menu using smartmenus module, now I've got a design request asking me to add an image to each parent item. Here's the idea: My first approach was to try with Menu Items ...
Alberto Castillo's user avatar
0 votes
0 answers
74 views

How would I create and render, but not save, an entire menu tree programmatically?

I'm trying to pull a number of links from several services, and combine them into a renderable menu tree: Source one: pull links A, B and C Source two: pull links D and E Source three: pull links F, G,...
WRD's user avatar
  • 187

1
3 4
5
6 7
11