Come modificare il numero degli ultimi record visitati nella barra laterale sinistra.
Ad esempio se abbiamo necessità di aumentare il numero degli ultimi record visitati da 5 a 10 dobbiamo intervenire nel seguente modo:
Creare il file
custom/themes/SuiteP/_headerModuleList.tpl
Cercare
1 2 3 |
<div id="recentlyViewedSidebar" class="recentlyViewedSidebar"> |
Modificare il numero da 5 a 10 nell’istruzione {if $smarty.foreach.lastViewed.index < 5} colorata in blu.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
<div id="recentlyViewedSidebar" class="recentlyViewedSidebar"> {if is_array($recentRecords) && count($recentRecords) > 0} <h2 class="recent_h3">{$APP.LBL_LAST_VIEWED}</h2> {/if} <ul class="nav nav-pills nav-stacked"> {foreach from=$recentRecords item=item name=lastViewed} {if $item.module_name != 'Emails' && $item.module_name != 'InboundEmail' && $item.module_name != 'EmailAddresses'}<!--Check to ensure that recently viewed emails or email addresses are not displayed in the recently viewed panel.--> {if $smarty.foreach.lastViewed.index < 10} <div class="recently_viewed_link_container_sidebar"> <li class="recentlinks" role="presentation"> <a title="{$item.module_name}" accessKey="{$smarty.foreach.lastViewed.iteration}" href="{sugar_link module=$item.module_name action='DetailView' record=$item.item_id link_only=1}" class="recent-links-detail"> <span class="suitepicon suitepicon-module-{$item.module_name|lower|replace:'_':'-'}"></span> <span>{$item.item_summary_short}</span> </a> <a href="{sugar_link module=$item.module_name action='EditView' record=$item.item_id link_only=1}" class="recent-links-edit"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></a> </li> </div> {/if} {/if} {/foreach} </ul> </div> |
ATTENZIONE! Dopo il salvataggio del file lanciate un “RIPARA E RICOSTRUISCI”.