08 Feb 2014
February 8, 2014

Fix that bug…More menu.. less display

1 Comment

Dear vtiger enthusiasts,

I have always felt that I need to do something about the MORE menu display in vtiger 5.4 because once you have more modules, the display goes literally out-of-control.

‘More’ menu does not display more, it actually displays less than it should.

A client need had that right trigger which pushed me to fix this in header.tpl file

This is the screen shot of a More menu display without the fix.

before more fixing

 

Check this code and update your crm/Smaty/templates/header.tpl file.

[code language="PHP"]
<span style="font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 13px; font-style: inherit; line-height: 1.6em;"><TABLE border=0 cellspacing=0 cellpadding=0 width=100% class="hdrTabBg"></span></pre>
<tr>
 {if $MODULE_NAME eq 'Home'}
 50px" class='tabSelected' align = "center"><a href="index.php?module=Home&action=index"><img style="width: 16px; height: 16px;" alt="" src="{$IMAGEPATH}Home.PNG" border="0" /></a>
 {else}
 50px" class='tabUnSelected' align = "center"><a href="index.php?module=Home&action=index&parenttab=My Home Page"><img style="width: 16px; height: 16px;" alt="" src="{$IMAGEPATH}Home.PNG" border="0" /></a>
 {/if}
 <td nowrap>
 <table border=0 cellspacing=0 cellpadding=0>
 <tr>
 <img src="{'spacer.gif'|@vtiger_imageurl:$THEME}" width=2px height=28px align="right">
 {assign var="count" value=1}
 {foreach key=maintabs item=detail from=$MENUSTRUCTURE}
 {if $maintabs eq 'top'}
 {foreach key=number item = name from = $detail}
 {assign var="modulename" value=$name[1]|@getTranslatedString:$name[0]}
 {assign var="modulelabel" value=$name[0]}
 {if $modulelabel ne $MODULE_NAME}
 <td class="tabUnSelected" align="center" nowrap><a href="index.php?module={$name[0]}&action=index">{$modulename}</a></td>
 <img src="{'spacer.gif'|@vtiger_imageurl:$THEME}">
 {else}
 <td class="tabSelected" align="center" nowrap><a href="index.php?module={$name[0]}&action=index">{$modulename}</a></td>
 <img src="{'spacer.gif'|@vtiger_imageurl:$THEME}">
 {/if}
 {/foreach}
 {/if}
 {/foreach}
 {foreach key=maintabs item=detail from=$MENUSTRUCTURE}
 {if $maintabs eq 'more' && $detail != null}
 allMenu');" onmouseover="fnvshobjMore(this,'allMenu','{$ANNOUNCEMENT}');"nowrap><a href="javascript:;">{$APP.LBL_MORE}<img style="padding-left: 5px;" alt="" src="{'menuDnArrow.gif'|@vtiger_imageurl:$THEME}" border="0" /></a>
 <img src="{'spacer.gif'|@vtiger_imageurl:$THEME}">
 {/if}
 {/foreach}
 10px" nowrap>
 {if $CNT eq 1}
<select id="qccombo" style="width: <span class=;">110px" onclick="QCreate(this);"></select>
 <option value="none">{$APP.LBL_QUICK_CREATE}...</option>
 {foreach item=detail from=$QCMODULE}
 <option value="{$detail.1}">{$APP.NEW}&nbsp;{$detail.0}</option>
 {/foreach}
 </select>
 {else}
<select id="qccombo" style="width: <span class=;">110px" onchange="QCreate(this);"></select>
 <option value="none">{$APP.LBL_QUICK_CREATE}...</option>
 {foreach item=detail from=$QCMODULE}
 <option value="{$detail.1}">{$APP.NEW}&nbsp;{$detail.0}</option>
 {/foreach}
 </select>
 {/if}
 </td>
 </tr>
 </table>
 </td>
 10px" nowrap >
 </td>
 </tr>
 </TABLE>
<pre>
 [/code]

 

Now take a look at this screen, This is after the code fix.

after more fixing

Note: The image is intentionally blurred.

 

Feel free to contact us at sales@vtigress.com if you need to get this implemented for your CRM instance.

Happy More displaying…

best regards

vTigress team

 
							  
 
			
One Response to Fix that bug…More menu.. less display
  1. […] Dear vtiger enthusiasts, I have always felt that I need to do something about the MORE menu display in vtiger 5.4 because once you have more modules, the display goes literally out-of-control. 'Mor…  […]


[top]

Leave a Reply

Your email address will not be published. Required fields are marked *