I want to control the display of menu items in the mega menu by conditions.

M_Tomy
Tera Expert

Dear Expert.

 

Please tell me how to control the Mega Menu in the Employee Center.

 

I want to hide menu items in the Employee Center according to conditions.

M_Tomy_0-1739783266959.png

 

 

(1) In which table should I set this up?

 

(2)I would like to use the same user criteria that I use elsewhere if possible. If possible, please let us know the implementation procedure or knowledge that could be used as an implementation sample.

 

Thank you in advance.

 

1 ACCEPTED SOLUTION

Gustav Aldenbra
Kilo Sage

Hi @M_Tomy 

 

Topics in the menu is controlled by users access to content connected to the topic. If you have added menu items that is not a topic you can controll access to the menu items using a condition.

 

You can find you menu items in the releated list of you menu in table sp_instance_menu. In the condtion field you can write a javascript condition, if you want the condtion to be based on user criteria you can use the following as the condition: "sn_uc.UserCriteriaLoader.userMatches(gs.getUserID(),["<sys_id of the user critera>"])"

View solution in original post

6 REPLIES 6

Gustav Aldenbra
Kilo Sage

Hi @M_Tomy 

 

Topics in the menu is controlled by users access to content connected to the topic. If you have added menu items that is not a topic you can controll access to the menu items using a condition.

 

You can find you menu items in the releated list of you menu in table sp_instance_menu. In the condtion field you can write a javascript condition, if you want the condtion to be based on user criteria you can use the following as the condition: "sn_uc.UserCriteriaLoader.userMatches(gs.getUserID(),["<sys_id of the user critera>"])"

M_Tomy
Tera Expert

@Gustav Aldenbra 

Thank you very much.
I realized it in a way similar to how you did it.

 

Thank you very much.