Insert Link into Top Navigation

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