6.0.0-beta1
7/4/25

[#7954] to make visible or not tab<app>
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

History
02/10/2009 09:56:20 AM gerard (dot) breiner (at) ias (dot) u-psud (dot) fr Comment #3 Reply to this comment
You can customize the DIMP interface through CSS.
Yes... by putting $conf[css_files] = 'custom.css'



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;

}




02/06/2009 11:29:07 PM Jan Schneider Comment #2
State ⇒ Rejected
Reply to this comment
You can customize the DIMP interface through CSS.
02/05/2009 04:06:27 PM gerard (dot) breiner (at) ias (dot) u-psud (dot) fr Comment #1
Priority ⇒ 2. Medium
Patch ⇒ No
Milestone ⇒
Queue ⇒ DIMP
Due ⇒ 02/06/2009
Summary ⇒ to make visible or not tab<app>
Type ⇒ Enhancement
State ⇒ New
Reply to this comment
Hello,



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'] . ' } })';

+                        }

     }

}




Saved Queries