Skip to main content
8-Gravel
November 3, 2022
Question

Hide or delete a specific item in a Menu

  • November 3, 2022
  • 1 reply
  • 976 views

Hi all, i have a menu which has 10 items in it. For one site i need to have 10 menu item. For other site i only need 8 item in a menu. Suggest a code to hide or delete the menu items based on my condition. Thanks in advance 

1 reply

17-Peridot
November 3, 2022

Create user groups with respect to plants.

Then add user groups to each menu item in Menu entity.

 

https://www.ptc.com/en/support/article/CS205546

 

17-Peridot
November 6, 2022

Hello @KT_10107318, 
Not sure what exact widget you are using, There may be a visible flag which is part of the menu definition. If you are providing an InfoTable to define the menu, the process of creating the infotable could accept a parameter to identify which version of the menu should be presented.