Hello,
I was able to create custom fields to custom users using the "advanced users" addon.
One of them is a dropdown menu called "Extra role".
What I am wondering, is that with this addon, is it possible to set conditions based on is selected inside that dropdown menu?
Example :
Let's say I created a user name "John Doe".
In the advanced user creation page in the admin, let's say there's a "extra role" dropdown menu, and that I have selected "Salesman".
Is there a way to make a condition like this:
I know "k_user_extra_role" doesn't exist, but you get the idea.
I would like to be able to hide content in the admin panel depending on the logged in user's "extra role".
Something that could be tied to the logged in user, globally, like "k_user_name" works.
With that in mind, I want to hide certain fields in some pages, and also only show entries that have been created by that logged in user, if his "extra role" is "Salesman".
Any idea how I can make this work?
Thanks
I was able to create custom fields to custom users using the "advanced users" addon.
One of them is a dropdown menu called "Extra role".
What I am wondering, is that with this addon, is it possible to set conditions based on is selected inside that dropdown menu?
Example :
Let's say I created a user name "John Doe".
In the advanced user creation page in the admin, let's say there's a "extra role" dropdown menu, and that I have selected "Salesman".
Is there a way to make a condition like this:
- Code: Select all
<cms:if k_user_extra_role == "Salesman">
#k_element_author{display:none;}
</cms:if>
I know "k_user_extra_role" doesn't exist, but you get the idea.
I would like to be able to hide content in the admin panel depending on the logged in user's "extra role".
Something that could be tied to the logged in user, globally, like "k_user_name" works.
With that in mind, I want to hide certain fields in some pages, and also only show entries that have been created by that logged in user, if his "extra role" is "Salesman".
Any idea how I can make this work?
Thanks