Summary | to make visible or not tab<app> |
Queue | DIMP |
Queue Version | 1.1.1 |
Type | Enhancement |
State | Rejected |
Priority | 2. Medium |
Owners | |
Requester | gerard.breiner (at) ias (dot) u-psud (dot) fr |
Created | 02/05/2009 (5993 days ago) |
Due | 02/06/2009 (5992 days ago) |
Updated | 02/10/2009 (5988 days ago) |
Assigned | |
Resolved | 02/06/2009 (5992 days ago) |
Milestone | |
Patch | No |
Then dimp/themes/custom.css
.activeTab {
display: none;
}
#hometab {
display: none;
}
#tabingo {
display: none;
}
#tabtransfert {
display: none;
}
#tabpasswd {
display: none;
}
#tabkronolith {
display: none;
}
#tabnag {
display: none;
}
State ⇒ Rejected
Priority ⇒ 2. Medium
Patch ⇒ No
Milestone ⇒
Queue ⇒ DIMP
Due ⇒ 02/06/2009
Summary ⇒ to make visible or not tab<app>
Type ⇒ Enhancement
State ⇒ New
Actually dimp's sidebar and tabbar are showed even thought we don't
want tabbar (tabingo, tabkronolith, etc.) but we want menuingo,
menukronolith etc.
So may I suggest a few modifications that works forme ?
dimp/conf/conf.xml
+ <configboolean name="showtab" required="false" desc="Should we use
a custom function to display the tabbar? ">false</configboolean>
dimp/templates/index/index.inc
<?php if (!empty($application_folders) || !empty($site_menu)): ?>
+ <?php if ($conf['hooks']['showtab']=='true'): ?>
<?php foreach ($site_menu as $key => $menu_item): if ($menu_item ==
'separator') continue; ?>
<li>
<a id="tab<?php echo $key ?>"><img src="<?php echo
$menu_item['icon'] ?>" alt="<?php echo $menu_item['text'] ?>" /><?php
echo $menu_item['text'] ?></a>
</li>
<?php endforeach; ?>
+ <?php endif; ?>
dimp/index.php
/* Add the site specific javascript now. */
if (!empty($site_menu)) {
foreach ($site_menu as $key => $menu_item) {
if ($menu_item == 'separator') {
continue;
}
$js_code[] = 'DimpCore.clickObserveHandler({ d: $(\'menu' . $key .
'\'), f: function() { ' . $menu_item['action'] . ' } })';
+ if ($conf['hooks']['showtab']==true) {
$js_code[] = 'DimpCore.clickObserveHandler({ d: $(\'tab' . $key .
'\'), f: function() { ' . $menu_item['action'] . ' } })';
+ }
}
}