I am searching the doc and forums for the all day and still scratching my head for a way to have a conditionnal presentation is a template switching on a kind of $isuserbackendconnected event (detecting if one user is connected to backend interface).
It seems not to exist.
The Frontend User Extension is not the solution fot me because I only wanna have to manage backend users.
I suppose this information is stored in a session variable but I did not find any clear information about it. (Any place to look ?)
I do not know if it is possible to catch a session variable in a smarty block. I found the "$smarty.session" variable but, no succeeding use.
Finally if none of these possibilities work, I found an other solution : to build a user defined tag in php that creates a contitionnal block. Something like that :
Code: Select all
if ($isuserbackendconnected)
call block 1
else
call block2
Thanks in advance for any help or suggestion ...
Zabelle