How to extend admin config menu with custom panel Drupal 8
I am trying to add programmaticaly a custom,parent
panel to the admin/config
menu, so i can add other links to it, config pages of other modules etc. How can that be done? I am able to add custom module, under admin/config/development/my_module
, for example, but i would like to group all my modules under same, custom parent panel
.
php drupal-8
add a comment |
I am trying to add programmaticaly a custom,parent
panel to the admin/config
menu, so i can add other links to it, config pages of other modules etc. How can that be done? I am able to add custom module, under admin/config/development/my_module
, for example, but i would like to group all my modules under same, custom parent panel
.
php drupal-8
To be more precise, i would like to create a panel title, simiral to default PEOPLE, SYSTEM, CONTENT AUTHORING, etc ... making it available to be the parent of my different, existing, standalone custome modules
– NewbieKa
Nov 21 '18 at 13:30
add a comment |
I am trying to add programmaticaly a custom,parent
panel to the admin/config
menu, so i can add other links to it, config pages of other modules etc. How can that be done? I am able to add custom module, under admin/config/development/my_module
, for example, but i would like to group all my modules under same, custom parent panel
.
php drupal-8
I am trying to add programmaticaly a custom,parent
panel to the admin/config
menu, so i can add other links to it, config pages of other modules etc. How can that be done? I am able to add custom module, under admin/config/development/my_module
, for example, but i would like to group all my modules under same, custom parent panel
.
php drupal-8
php drupal-8
asked Nov 20 '18 at 20:28
NewbieKaNewbieKa
25
25
To be more precise, i would like to create a panel title, simiral to default PEOPLE, SYSTEM, CONTENT AUTHORING, etc ... making it available to be the parent of my different, existing, standalone custome modules
– NewbieKa
Nov 21 '18 at 13:30
add a comment |
To be more precise, i would like to create a panel title, simiral to default PEOPLE, SYSTEM, CONTENT AUTHORING, etc ... making it available to be the parent of my different, existing, standalone custome modules
– NewbieKa
Nov 21 '18 at 13:30
To be more precise, i would like to create a panel title, simiral to default PEOPLE, SYSTEM, CONTENT AUTHORING, etc ... making it available to be the parent of my different, existing, standalone custome modules
– NewbieKa
Nov 21 '18 at 13:30
To be more precise, i would like to create a panel title, simiral to default PEOPLE, SYSTEM, CONTENT AUTHORING, etc ... making it available to be the parent of my different, existing, standalone custome modules
– NewbieKa
Nov 21 '18 at 13:30
add a comment |
1 Answer
1
active
oldest
votes
Check in contrib modules for examples. Example from message module - message.links.menu.yml
message.overview_templates:
title: 'Message templates'
parent: system.admin_structure
description: 'Manage message templates.'
route_name: message.overview_templates
message.main_settings:
title: 'Message'
route_name: message.main_settings
parent: system.admin_config
description: 'Tools that enhance the user interface.'
weight: -10
message.settings:
title: 'Message'
description: 'Message settings.'
parent: 'message.main_settings'
route_name: message.settings
Also, check the official documentation: https://www.drupal.org/docs/8/creating-custom-modules/add-a-menu-link
Thank you for your time Denis. Regarding theroute_name: message.overview_templates
, do i have to define a route with the help of a form or a controller class, under the route name ofoverview_templates
?I am affraid this will output an error, like no such route is defined
– NewbieKa
Nov 21 '18 at 12:34
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53401023%2fhow-to-extend-admin-config-menu-with-custom-panel-drupal-8%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Check in contrib modules for examples. Example from message module - message.links.menu.yml
message.overview_templates:
title: 'Message templates'
parent: system.admin_structure
description: 'Manage message templates.'
route_name: message.overview_templates
message.main_settings:
title: 'Message'
route_name: message.main_settings
parent: system.admin_config
description: 'Tools that enhance the user interface.'
weight: -10
message.settings:
title: 'Message'
description: 'Message settings.'
parent: 'message.main_settings'
route_name: message.settings
Also, check the official documentation: https://www.drupal.org/docs/8/creating-custom-modules/add-a-menu-link
Thank you for your time Denis. Regarding theroute_name: message.overview_templates
, do i have to define a route with the help of a form or a controller class, under the route name ofoverview_templates
?I am affraid this will output an error, like no such route is defined
– NewbieKa
Nov 21 '18 at 12:34
add a comment |
Check in contrib modules for examples. Example from message module - message.links.menu.yml
message.overview_templates:
title: 'Message templates'
parent: system.admin_structure
description: 'Manage message templates.'
route_name: message.overview_templates
message.main_settings:
title: 'Message'
route_name: message.main_settings
parent: system.admin_config
description: 'Tools that enhance the user interface.'
weight: -10
message.settings:
title: 'Message'
description: 'Message settings.'
parent: 'message.main_settings'
route_name: message.settings
Also, check the official documentation: https://www.drupal.org/docs/8/creating-custom-modules/add-a-menu-link
Thank you for your time Denis. Regarding theroute_name: message.overview_templates
, do i have to define a route with the help of a form or a controller class, under the route name ofoverview_templates
?I am affraid this will output an error, like no such route is defined
– NewbieKa
Nov 21 '18 at 12:34
add a comment |
Check in contrib modules for examples. Example from message module - message.links.menu.yml
message.overview_templates:
title: 'Message templates'
parent: system.admin_structure
description: 'Manage message templates.'
route_name: message.overview_templates
message.main_settings:
title: 'Message'
route_name: message.main_settings
parent: system.admin_config
description: 'Tools that enhance the user interface.'
weight: -10
message.settings:
title: 'Message'
description: 'Message settings.'
parent: 'message.main_settings'
route_name: message.settings
Also, check the official documentation: https://www.drupal.org/docs/8/creating-custom-modules/add-a-menu-link
Check in contrib modules for examples. Example from message module - message.links.menu.yml
message.overview_templates:
title: 'Message templates'
parent: system.admin_structure
description: 'Manage message templates.'
route_name: message.overview_templates
message.main_settings:
title: 'Message'
route_name: message.main_settings
parent: system.admin_config
description: 'Tools that enhance the user interface.'
weight: -10
message.settings:
title: 'Message'
description: 'Message settings.'
parent: 'message.main_settings'
route_name: message.settings
Also, check the official documentation: https://www.drupal.org/docs/8/creating-custom-modules/add-a-menu-link
answered Nov 21 '18 at 10:01
DenisDenis
5919
5919
Thank you for your time Denis. Regarding theroute_name: message.overview_templates
, do i have to define a route with the help of a form or a controller class, under the route name ofoverview_templates
?I am affraid this will output an error, like no such route is defined
– NewbieKa
Nov 21 '18 at 12:34
add a comment |
Thank you for your time Denis. Regarding theroute_name: message.overview_templates
, do i have to define a route with the help of a form or a controller class, under the route name ofoverview_templates
?I am affraid this will output an error, like no such route is defined
– NewbieKa
Nov 21 '18 at 12:34
Thank you for your time Denis. Regarding the
route_name: message.overview_templates
, do i have to define a route with the help of a form or a controller class, under the route name of overview_templates
?I am affraid this will output an error, like no such route is defined– NewbieKa
Nov 21 '18 at 12:34
Thank you for your time Denis. Regarding the
route_name: message.overview_templates
, do i have to define a route with the help of a form or a controller class, under the route name of overview_templates
?I am affraid this will output an error, like no such route is defined– NewbieKa
Nov 21 '18 at 12:34
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53401023%2fhow-to-extend-admin-config-menu-with-custom-panel-drupal-8%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
To be more precise, i would like to create a panel title, simiral to default PEOPLE, SYSTEM, CONTENT AUTHORING, etc ... making it available to be the parent of my different, existing, standalone custome modules
– NewbieKa
Nov 21 '18 at 13:30