Questions tagged [routes]

Using a term introduced in Drupal 8, routes are the paths to which modules respond.

Filter by
Sorted by
Tagged with
-1
votes
1answer
619 views

change an add entity route to a custom route in order to not use admin theme

I will start off by saying i have already studied these posts, to no avail: Overriding an entity add/edit form through alterroute How to load my Entity in Entity form https://www.drupal.org/docs/8/...
-1
votes
1answer
35 views

Missing title in template for custom route

I'm missing a title (_title) being shown on a custom route page. I wonder where i can place it in a template for it to show up. My route: bg_helper.blogs_overview: path: '/blog' defaults: ...
-1
votes
1answer
50 views

Changing the routing class is throwing an error

I am trying to change my UserLoginForm class to iLibUserLoginForm with the following code. namespace Drupal\ilib_sso\Routing; use Drupal\Core\Routing\RouteSubscriberBase; use Symfony\Component\...
-1
votes
2answers
728 views

Retrieve argument in hook_menu() item url

On my custom module, I defined the following hook_menu() function. function motel_events_menu() { $items['ajax/pastevents/%'] = array( 'title' => 'Get Past Events', 'page ...
-1
votes
1answer
944 views

How to expand TB Megamenu in opposite direction so it won't go outside of the site?

I am using TB Mega Menu for my drop down menu that has three columns with width: 665px and height: 335px. I want to do something like this: There are total 8 menu tabs. When I click on first 6 menu ...
-1
votes
1answer
359 views

Passing parameters to route

So currently i am passing some params to a form via the route path as so: my_module.action: path: '/status/{action}/{id}' defaults: _form: '\Drupal\my_module\Form\MyForm' requirements: ...
-1
votes
2answers
29 views

Put a Form in the Site's Homepage

I have the item menu in my hook_menu. //Calls a function that enables creating, updating and deleting ID Templates. $items['user/%user/myid_templates'] = array( 'title' => 'MyID Templates', ...
-1
votes
1answer
67 views

how acces admin theme without /admin in url?

I try to have an admin theme for admin user and custom theme for user logged in without /admin/.... in the url. I create an entity content module, the routing is like that : # AnnonceEntity ...
-1
votes
1answer
408 views

How programmatically assign selected menu to superfish menu…?

In my custom theme there is an option to choose navigation menu and type of navigation menu (TB Megamenu and Superfish Menu) from a select list in theme settings page. In my tpl file am able to pass ...
-1
votes
1answer
211 views

Off canvas menu for drupal 6

Are there any modules for Drupal 6 that provide an off-canvas menu? My site has mobile users and I want to hide the navigation bar when they view it. I want something like this: I have searched both ...
-1
votes
1answer
54 views

Menu and breadcrumbs

I need the menu bar and breadcrumbs to use different hierarchies. Specifically, I need the menu bar to have: Home | Projects | About | Contact but I need the breadcrumbs for a project page to be: ...
-1
votes
2answers
137 views

what does 'admin/build/modules' mean?

I'm a total newbie to Drupal so I'm starting by trying to follow some tutorials. One says to enable a module at admin/build/modules but I have no idea what this means. I assume this is a path through ...
-1
votes
1answer
41 views

Error when enabling Administration Language for Core Toolbar

I downloaded and enabled the admin_language module, and in one of its configuration settings, I enabled Use administration language for the core toolbar, after which it threw out this error: Notice:...
-1
votes
1answer
18 views

is my menu-block not properly inserted?

quite new to drupal and having a small issue i can't seem to solve. it's quite a lot to start to explain so i think it's best to just send you the link and explain the problem. take a look at www....
-1
votes
1answer
64 views

User tabs and actions

I have a custom module and in hook_menu have defined the items below. I have created a new user tab below: $items["user/%user/TAB"] = array( "title" => t("TAB"), "page ...
-1
votes
1answer
563 views

Looking for a header menu, with drop-down block that list all submenus [closed]

I'm looking for a module that can help me to make a menu like this one : http://www.airbus.com/ I would like a dropdown block, that fit page width to list my submenu, and add content like image ...
-1
votes
2answers
739 views

Why dropdown menus does not work with all themes?

I am testing few drupal-6 themes for my blog and I observe that the drop-down menus in one theme does not show in another theme. I am specifically testing with Blogbuzz and Jackson. In my case, ...
-1
votes
1answer
76 views

Global Variable

I have the following problem: I want to create a product catalogue. In the catalogue there are different types (Content Types) of products: eg chairs, tables, couches (i approached that with content ...
-1
votes
2answers
713 views

Menu will not display - D7

I have an issue where I have created a menu within Drupal, assigned the block created by that menu to a region and set it to display on certain pages, but it's not displaying. It's a Drupal 7 site (v ...
-1
votes
1answer
43 views

How to include node of a certain content type as links in a menu?

I have create a menu called: Products. Then I have a content type called: Product. Now when I create a Product node I need it automatically include in the Products menu. Then if I have 10 nodes I ...
-2
votes
2answers
515 views

Restructure main menu markup [closed]

I need this structure to my drupal main-menu: <div class="list-group"> <a href="#" class="list-group-item active"> Cras justo odio </a> <a href="#" class="list-group-...
-2
votes
1answer
47 views

Access the blog from the main menu [closed]

I want to add a link in the main menu to Blog a whole, ie the blog you go all blog entries of all users. I use the blog module and yes I can insert the access to different users blogs, but not the ...
-2
votes
1answer
113 views

Menu for mobile responsive [duplicate]

Is there any recommended module for responsive menu? Example the picture above, click on it and a list of menu appear. Easy to configure. This content is for: many content Creating a responsive ...
-2
votes
1answer
128 views

call to undefined function fatal error - weird problem [closed]

I have a custom module which calls a custom function. I created this function longback working fine till yesterday. today it says call to undefined function fatal error. Does anyone know what the ...
-2
votes
1answer
202 views

How to put a link / menu at the top of the edit-user profile page? [closed]

How can I put a link / menu in the edit-user-profile page, in the upper right corner? This link will open a new page with a form created. I've been watching a few examples but I could not understand....
-2
votes
1answer
208 views

need you advice how to build this website has the same views [closed]

The search info module is the common feature for all the airport1,2,3 with this requirement do I need to set up multisite for ariport1,2 ,3? Could any give some tips what should I use (drupal) to ...
-2
votes
2answers
525 views

Administration menu affects theming [closed]

I'm using the Admin menu in Drupal 7. I recently started developing a Zen sub-theme for my website and discovered something annoying. My theme's heading background is a simple 200px high image (a ...
-2
votes
1answer
300 views

menu_link_save() fails

menu_link_save() fails; I'm manually updating "plid," "p1," and "depth." $sql = "UPDATE menu_links SET plid=" . $parent . ", depth=2, p1=" . $parent . ", p2=19072 WHERE mlid=" . $child->mlid ; $...
-2
votes
2answers
203 views

How can I allow non admin users to edit the menu settings for a node?

How can I set a "Menu settings" field to be available to non admin roles in the permissions page? Here's an image to clarify what I am trying to allow select roles to edit when creating a new node of ...
-2
votes
1answer
31 views

Hook_menu_alter does not load correct page

I'm trying to check if a user has permission(registered by a module) before he adds/edits fields on a node type registered by the module. The approach is to use hook_menu_alter and add an access ...