|
From: | Laurent Destailleur (eldy) |
Subject: | Re: [Dolibarr-dev] adding tabs dinamycally |
Date: | Thu, 29 Nov 2012 23:04:34 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
When you declare a new tab, you can
only set a string that is the permission to show tab or not.
This condition can be a dynamic variable. For example "$user->rights->othermodule->read" However to show or not, i don't think there is solution for the moment. With version dev i commited, you can add into your descriptor a line to remove a tab according to a condition. Syntax to remove a tab is into the descriptor file $this->tabs = array('objecttype:-tabname':NU:conditiontoremove)); for "conditiontoremove", you can use a variable that is defined globally. For example $conf->global->XXX Le 29/11/2012 05:19, Manuel Muñoz a écrit :
-- Eldy (Laurent Destailleur). EMail: address@hidden Web: http://www.destailleur.fr Dolibarr (Project leader): http://www.dolibarr.org To make a donation for Dolibarr project via Paypal: address@hidden AWStats (Author) : http://awstats.sourceforge.net To make a donation for AWStats project via Paypal: address@hidden AWBot (Author) : http://awbot.sourceforge.net CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net |
[Prev in Thread] | Current Thread | [Next in Thread] |