Home/dashboard link in menu bar

Does anyone have any idea of how to add a Home/Dashboard link to the menu bar, so that it’s always displayed as the first or second item at root level?
The nearest I’ve got so far is by creating a Home group with the menu link in (Home->Home), but why can’t there just be a link on the top level all the time?

Any suggestions or advice would be greatly appreciated!

Thanks,
Sam

You can start by trying my post here:
https://suitecrm.com/index.php?option=com_kunena&view=topic&catid=9&id=1818&Itemid=1136

and asking the person who asked the question if he came up with a solution or if mine worked.

2 Likes

Hi there,

You would simply add the following:



<li>
	<a href="?action=ajaxui#ajaxUILoc=index.php%3Fmodule%3DHome%26action%3Dindex%26parentTab%3DHome" id="moduleTab_9_Home" module="Home">Home</a>
</li>

You add this after:



{if $USE_GROUP_TABS}
    <div id="moduleList">
        <ul>

and after:



{else}
    <div id="moduleList">
        <ul>

You can do this in custom/themes/Suite7/tpls/_headerModuleList.tpl to stay upgrade safe i.e. for changes not to be overwritten.

Thanks,

Will.

2 Likes

Thanks to both of you for that - I didn’t see that post when I searched initially for it - that certainly makes it more user friendly, and it will be great if that won’t need reinserting after every upgrade!

Best,
Sam

Thank you both,

i did a test, and found that the following code is better to avoid the repeat of “Home” link when you are in homepage.

In custom/themes/Suite7/tpls/_headerModuleList.tpl

after

{if $USE_GROUP_TABS}
    <div id="moduleList">
        <ul>

insert

{if $MODULE_TAB != 'Home'}
		<li>
			<a href="?action=ajaxui#ajaxUILoc=index.php%3Fmodule%3DHome%26action%3Dindex%26parentTab%3DHome" id="moduleTab_9_Home" module="Home">Home</a>
		</li>
		{/if}

and the same after

{else}
    <div id="moduleList">
        <ul>
1 Like

This file and location did not exist “custom/themes/Suite7/tpls/_headerModuleList.tpl” so I created it however those changes didn’t have any effect on the site. The only way I’ve been able to achieve adding a custom link to the top menu navigation is using the method not safe for upgrade at: https://suitecrm.com/forum/suggestion-box/1818-top-menu-home-link#7517

Hi Dusza,

i don’t know if it’s upgrade safe…
in my istances it’s working…

Anyway,… any improvement will be very appreciate

The new theme has a home link always, this displays as the CRM name.

The sidebar also houses global recently viewed, for easy access.

Thanks,

Will.

1 Like