Foren
How to know user role from template vm
Vitaly Men, geändert vor 8 Jahren.
How to know user role from template vm
New Member Beitrag: 1 Beitrittsdatum: 06.10.15 Neueste Beiträge
Hi , I wanted to know if possible to get the role of the user from the template vm with if , if yes please add an example , thnx
David H Nebinger, geändert vor 8 Jahren.
RE: How to know user role from template vm
Liferay Legend Beiträge: 14916 Beitrittsdatum: 02.09.06 Neueste Beiträge
I'm sure you could get it, but the question is whether you should or not.
The templates are executed each time the page is rendered, so heavyweight logic should not be used...
The templates are executed each time the page is rendered, so heavyweight logic should not be used...
Andry Daniel Díaz León, geändert vor 8 Jahren.
RE: How to know user role from template vm
New Member Beiträge: 3 Beitrittsdatum: 26.02.13 Neueste Beiträge
If is mandatory for you, you can put as velocity variable and then retrieve that variable in your template.
Check the link, to know how you can do it.
Check the link, to know how you can do it.