[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Dolibarr-dev] adding tabs dinamycally

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 :
maybe this has been asked before:

how can i add tabs dynamically to a core object? i would like to fill'em with data from a table of the core.
is there a way to add them without restarting the module?

thank you very much, all your help is very apreciated

Manuel Munoz

Dolibarr-dev mailing list

Eldy (Laurent Destailleur).

EMail: address@hidden

Dolibarr (Project leader):
To make a donation for Dolibarr project via Paypal: address@hidden
AWStats (Author) :
To make a donation for AWStats project via Paypal: address@hidden
AWBot (Author) :
CVSChangeLogBuilder (Author) :

reply via email to

[Prev in Thread] Current Thread [Next in Thread]