掲示板
How to know user role from template vm
8年前 に Vitaly Men によって更新されました。
How to know user role from template vm
New Member 投稿: 1 参加年月日: 15/10/06 最新の投稿
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
8年前 に David H Nebinger によって更新されました。
RE: How to know user role from template vm
Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
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...
8年前 に Andry Daniel Díaz León によって更新されました。
RE: How to know user role from template vm
New Member 投稿: 3 参加年月日: 13/02/26 最新の投稿
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.