Insert Link into Top Navigation

I want to insert a link in this Marketing section of Top Navigation. Please help me.

Do you want to add different module? Did you create a new module?

Admin ā†’ Configure Module Menu Filters

I donā€™t want to add different module, I want to add a link. Just like a redirect link to google.com

I tried to add a redirect link to SuiteCRM/themes/SuiteP/tpls
/_headerModuleList.tpl, but it wonā€™t work for me.

Did you delete cache\themes folder and then did hard reload and clear cache on the browser?

I have added an external link under ā€˜Marketingā€™ menu with the following steps.

  1. Copy ā€˜themes\SuiteP\tpls\header.tplā€™ & ā€˜themes\SuiteP\tpls_headerModuleList.tplā€™
    at ā€˜custom\themes\SuiteP\tpls\header.tplā€™ & ā€˜custom\themes\SuiteP\tpls_headerModuleList.tplā€™
    Open custom\themes\SuiteP\tpls\header.tpl and change the following line to include _headerModuleList.tpl from custom folder.
{if $AUTHENTICATED}
    <div id="ajaxHeader">
        {include file="custom/themes/SuiteP/tpls/_headerModuleList.tpl"}
    </div>
{/if}
  1. Open ā€˜custom\themes\SuiteP\tpls_headerModuleList.tplā€™ in my editor. Search for class=ā€œdesktop-toolbarā€
  2. Scroll down until we find ā€˜{foreach from=$groupTabsā€™
  3. Added a new list item in UL with 'dropdown-menu class & ust above $modules.modules foreach loop.
    Remove the condition if required.
{if $group =='Marketing'}
	<li>
		<a href="#">Google</a>
	</li>
{/if}

The code looks as follows.

image

Quick Repair & Rebuild & Clear browser cache to test the new menu link.

1 Like

do we need to create this under custom folder?


Better:

{if $group == 'Marketing'}
	<li>
		<a href="https://www.google.com" target="_blank">Google</a>
	</li>
{/if}

Yes, Changed the steps accordingly. Thanks