dolibarr-dev
[Top][All Lists]
Advanced

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

Re: [Dolibarr-dev] Default page after login / Page d'acceuil par defaut


From: Laurent Destailleur (eldy)
Subject: Re: [Dolibarr-dev] Default page after login / Page d'acceuil par defaut
Date: Sat, 26 Jan 2013 00:14:03 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2

Le 25/01/2013 21:25, Régis Houssin a écrit :
> Je ne suis pas d'accord avec ça,
> Un trigger permet d'exécuter une action par rapport à un événement, ce qui 
> est le cas ici.
Non, les triggers ont été conçu pour etre appelé dans un évenement
transactionnel d'une action métier (type CRUD).

Hors de cela, le trigger n'est pas adapté et il faut utiliser les hooks.
Les hook sont des points d'interruptions de code qui peuvent se trouver
n'importe, ou la ou on a besoin d'insérer du code externe, quelquesoit
la nature et la position de ce code (cf documentation wiki).

> Le hook permet lui de personnaliser ou rajouter des éléments. D'ailleurs il 
> ne devrait pas y avoir de hook dans les classes Dao comme actuellement pour 
> les extrafields !
>
> -----------------------------------------
> Régis Houssin
> Tél. +33633020797
> http://www.dolibarr.fr
> http://www.dolibox.fr
>
> Le 25 janv. 2013 à 20:53, "Laurent Destailleur (eldy)" <address@hidden> a 
> écrit :
>
>> Note that this will be replaced by a hook in future: A login isn't a
>> business event, so having a trigger here is not a good development.
>> Trigger are dedicated to businness event into a transactionnal context.
>>
>>
>> Le 25/01/2013 10:35, Florian Henry a écrit :
>>> Hi,
>>>
>>>    Thank for this answer. Simple solution is the better. I didn't
>>> think to it....
>>>
>>>    I do it with the trigger USER_LOGIN, because the first pages
>>> depend on Usergroup of the new connected users.
>>>
>>> Kind regards.
>>>
>>> Florian HENRY
>>> address@hidden
>>> +33 6 03 76 48 07
>>> http://www.open-concept.pro
>>>
>>> Le 25/01/2013 10:05, Laurent Destailleur (eldy) a écrit :
>>>> I don't remember any option tha can do that.
>>>> The best method is using the url of third party as login page.
>>>>
>>>> Le 24/01/2013 00:06, Florian Henry a écrit :
>>>>> Hello,
>>>>>
>>>>> I remember to read somewhere in the code a "hidden" dolibarr constant,
>>>>> or a Dolibarr settings to defaulted the first page after login (for
>>>>> exemple go to thirdparty page after login by default), but I cant'
>>>>> find it anymore. Did I dream it ?
>>>>>
>>>>> I found hook afterlogin or trigger USER_LOGIN, but as I remember
>>>>> somthing that do it, I ask to the community if it exists.
>>>>>
>>>>> Kind regards
>>>>>
>>>>> ------------------------------------------------------------------
>>>>>
>>>>> Bonjour a tous,
>>>>>
>>>>> J'ai le souvenir (peut être en rêve) d'avoir vue dans la conf ou une
>>>>> variable MAIN_... qui permet de définir la page d’accueil par défaut.
>>>>> Par exemple pour arrivé sur l'écran tiers par défaut et non sur la
>>>>> home Accueil après la connexion.
>>>>>
>>>>> J'ai bien vue les hook afterlogin ou le tigger USER_LOGIN, mais si ça
>>>>> existe en standard, je le préfère a une customization via un module.
>>>>>
>>>>> Ca vous parle ?
>>>>>
>>>>> Cdt.
>>
>> -- 
>> 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
>>
>>
>> _______________________________________________
>> Dolibarr-dev mailing list
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/dolibarr-dev
>>
> _______________________________________________
> Dolibarr-dev mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/dolibarr-dev


-- 
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




reply via email to

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