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.
- 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}
- Open ācustom\themes\SuiteP\tpls_headerModuleList.tplā in my editor. Search for class=ādesktop-toolbarā
- Scroll down until we find ā{foreach from=$groupTabsā
- 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.
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