{"id":252,"date":"2020-04-07T17:59:47","date_gmt":"2020-04-07T17:59:47","guid":{"rendered":"https:\/\/www.techcrm.in\/blogs\/?p=252"},"modified":"2020-09-08T14:53:09","modified_gmt":"2020-09-08T09:23:09","slug":"add-a-sub-menu-to-a-module-in-main-menu","status":"publish","type":"post","link":"https:\/\/www.techcrm.in\/blogs\/add-a-sub-menu-to-a-module-in-main-menu\/","title":{"rendered":"Add a Sub Menu to a Module in Main Menu"},"content":{"rendered":"\n<p>This is how you add a new option under a module in the Main Menu on top of the screen. <\/p>\n\n\n\n<p>Lets say you want to add an option \u201cProcess Leads\u201d under the Leads module. &nbsp;To do this: <\/p>\n\n\n\n<p><strong>Step 1:<\/strong> Create a new file in custom\/Extension\/modules\/&lt;desired_module<em>><\/em>\/Ext\/Menus. If the Menus folder doesn\u2019t exist in &lt;desired_module>, just make one. We can name the file menu.php. <\/p>\n\n\n\n<p><strong>Step 2:<\/strong>  On menu.php file, input codes below: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n\nglobal $module_menu, $mod_strings, $app_strings;\n\n\/\/ This will add the new option\nif(ACLController::checkAccess('&lt;desired_module>', 'edit', true))$module_menu&#91;] = Array(\"index.php?module=&lt;desired_module>&amp;action=&lt;custom_action>&amp;return_module=&lt;desired_module>&amp;return_action=DetailView\", $mod_strings&#91;'LNK_NEW_RECORD'],\"&lt;Create_desired_module>\", '&lt;TITLE>');\n\n?><\/code><\/pre>\n\n\n\n<p><strong>Step 3:<\/strong>  Run Quick Repair and Rebuild.  <\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong>Note<\/strong> <strong>:<\/strong> <\/p><cite> <em>Here, &lt;desired_module> means the module name you see in the URL, for example, Contacts, Leads, etc. <\/em> <br>&lt;<em>custom_action<\/em>>  <em>means  custom action page<\/em><\/cite><\/blockquote>\n\n\n\n<p>Hope you find this blog post helpful.<\/p>\n\n\n\n<p>Feel free to add comments and queries, that helps us to improve the quality of posts.<\/p>\n\n\n\n<p>You can contact us at&nbsp;<a rel=\"noreferrer noopener\" href=\"mailto:contact@urdhva-tech.com\" target=\"_blank\">info@techcrm.in<\/a><\/p>\n\n\n\n<p>Thank you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is how you add a new option under a module in the Main Menu on top of the screen. Lets say you want to add an option \u201cProcess Leads\u201d under the Leads module. &nbsp;To do this: Step 1: Create a new file in custom\/Extension\/modules\/&lt;desired_module>\/Ext\/Menus. If the Menus folder doesn\u2019t exist in &lt;desired_module>, just make [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,9],"tags":[55,54,12,13],"class_list":["post-252","post","type-post","status-publish","format-standard","hentry","category-sugarcrm","category-suitecrm","tag-module","tag-sub-menu","tag-sugarcrm","tag-suitecrm"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Add a Sub Menu to a Module in Main Menu - TechCRM<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.techcrm.in\/blogs\/add-a-sub-menu-to-a-module-in-main-menu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Add a Sub Menu to a Module in Main Menu - TechCRM\" \/>\n<meta property=\"og:description\" content=\"This is how you add a new option under a module in the Main Menu on top of the screen. Lets say you want to add an option \u201cProcess Leads\u201d under the Leads module. &nbsp;To do this: Step 1: Create a new file in custom\/Extension\/modules\/&lt;desired_module&gt;\/Ext\/Menus. If the Menus folder doesn\u2019t exist in &lt;desired_module&gt;, just make [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.techcrm.in\/blogs\/add-a-sub-menu-to-a-module-in-main-menu\/\" \/>\n<meta property=\"og:site_name\" content=\"TechCRM\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-07T17:59:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-09-08T09:23:09+00:00\" \/>\n<meta name=\"author\" content=\"Navin Rakhonde\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Navin Rakhonde\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.techcrm.in\/blogs\/add-a-sub-menu-to-a-module-in-main-menu\/\",\"url\":\"https:\/\/www.techcrm.in\/blogs\/add-a-sub-menu-to-a-module-in-main-menu\/\",\"name\":\"Add a Sub Menu to a Module in Main Menu - TechCRM\",\"isPartOf\":{\"@id\":\"https:\/\/www.techcrm.in\/blogs\/#website\"},\"datePublished\":\"2020-04-07T17:59:47+00:00\",\"dateModified\":\"2020-09-08T09:23:09+00:00\",\"author\":{\"@id\":\"https:\/\/www.techcrm.in\/blogs\/#\/schema\/person\/992dfe427bb53dcdfd72dd80e3ef9dbc\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.techcrm.in\/blogs\/add-a-sub-menu-to-a-module-in-main-menu\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.techcrm.in\/blogs\/add-a-sub-menu-to-a-module-in-main-menu\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.techcrm.in\/blogs\/add-a-sub-menu-to-a-module-in-main-menu\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.techcrm.in\/blogs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SugarCRM\",\"item\":\"https:\/\/www.techcrm.in\/blogs\/category\/sugarcrm\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Add a Sub Menu to a Module in Main Menu\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.techcrm.in\/blogs\/#website\",\"url\":\"https:\/\/www.techcrm.in\/blogs\/\",\"name\":\"TechCRM\",\"description\":\"Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.techcrm.in\/blogs\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.techcrm.in\/blogs\/#\/schema\/person\/992dfe427bb53dcdfd72dd80e3ef9dbc\",\"name\":\"Navin Rakhonde\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.techcrm.in\/blogs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9cc8fd1b948255055b85e5d41dabfc6e704f806d180a1e21cb8fb378e2f5c022?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9cc8fd1b948255055b85e5d41dabfc6e704f806d180a1e21cb8fb378e2f5c022?s=96&d=mm&r=g\",\"caption\":\"Navin Rakhonde\"},\"sameAs\":[\"https:\/\/www.techcrm.in\/\"],\"url\":\"https:\/\/www.techcrm.in\/blogs\/author\/navin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Add a Sub Menu to a Module in Main Menu - TechCRM","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.techcrm.in\/blogs\/add-a-sub-menu-to-a-module-in-main-menu\/","og_locale":"en_US","og_type":"article","og_title":"Add a Sub Menu to a Module in Main Menu - TechCRM","og_description":"This is how you add a new option under a module in the Main Menu on top of the screen. Lets say you want to add an option \u201cProcess Leads\u201d under the Leads module. &nbsp;To do this: Step 1: Create a new file in custom\/Extension\/modules\/&lt;desired_module>\/Ext\/Menus. If the Menus folder doesn\u2019t exist in &lt;desired_module>, just make [&hellip;]","og_url":"https:\/\/www.techcrm.in\/blogs\/add-a-sub-menu-to-a-module-in-main-menu\/","og_site_name":"TechCRM","article_published_time":"2020-04-07T17:59:47+00:00","article_modified_time":"2020-09-08T09:23:09+00:00","author":"Navin Rakhonde","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Navin Rakhonde","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.techcrm.in\/blogs\/add-a-sub-menu-to-a-module-in-main-menu\/","url":"https:\/\/www.techcrm.in\/blogs\/add-a-sub-menu-to-a-module-in-main-menu\/","name":"Add a Sub Menu to a Module in Main Menu - TechCRM","isPartOf":{"@id":"https:\/\/www.techcrm.in\/blogs\/#website"},"datePublished":"2020-04-07T17:59:47+00:00","dateModified":"2020-09-08T09:23:09+00:00","author":{"@id":"https:\/\/www.techcrm.in\/blogs\/#\/schema\/person\/992dfe427bb53dcdfd72dd80e3ef9dbc"},"breadcrumb":{"@id":"https:\/\/www.techcrm.in\/blogs\/add-a-sub-menu-to-a-module-in-main-menu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.techcrm.in\/blogs\/add-a-sub-menu-to-a-module-in-main-menu\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.techcrm.in\/blogs\/add-a-sub-menu-to-a-module-in-main-menu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.techcrm.in\/blogs\/"},{"@type":"ListItem","position":2,"name":"SugarCRM","item":"https:\/\/www.techcrm.in\/blogs\/category\/sugarcrm\/"},{"@type":"ListItem","position":3,"name":"Add a Sub Menu to a Module in Main Menu"}]},{"@type":"WebSite","@id":"https:\/\/www.techcrm.in\/blogs\/#website","url":"https:\/\/www.techcrm.in\/blogs\/","name":"TechCRM","description":"Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.techcrm.in\/blogs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.techcrm.in\/blogs\/#\/schema\/person\/992dfe427bb53dcdfd72dd80e3ef9dbc","name":"Navin Rakhonde","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.techcrm.in\/blogs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9cc8fd1b948255055b85e5d41dabfc6e704f806d180a1e21cb8fb378e2f5c022?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9cc8fd1b948255055b85e5d41dabfc6e704f806d180a1e21cb8fb378e2f5c022?s=96&d=mm&r=g","caption":"Navin Rakhonde"},"sameAs":["https:\/\/www.techcrm.in\/"],"url":"https:\/\/www.techcrm.in\/blogs\/author\/navin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.techcrm.in\/blogs\/wp-json\/wp\/v2\/posts\/252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techcrm.in\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techcrm.in\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techcrm.in\/blogs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techcrm.in\/blogs\/wp-json\/wp\/v2\/comments?post=252"}],"version-history":[{"count":3,"href":"https:\/\/www.techcrm.in\/blogs\/wp-json\/wp\/v2\/posts\/252\/revisions"}],"predecessor-version":[{"id":359,"href":"https:\/\/www.techcrm.in\/blogs\/wp-json\/wp\/v2\/posts\/252\/revisions\/359"}],"wp:attachment":[{"href":"https:\/\/www.techcrm.in\/blogs\/wp-json\/wp\/v2\/media?parent=252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techcrm.in\/blogs\/wp-json\/wp\/v2\/categories?post=252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techcrm.in\/blogs\/wp-json\/wp\/v2\/tags?post=252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}