Disable a menu item

Hi,
I use security module and the option “Hide Menu Items” - When security is being used, rather than disable the menu item, it hides the item. The item must have link to be able to be hidden.

All OK so far.

However I would like to have in the statica menu that is on the left) some Section Names (I don’t want submenus to pop up). So I create some options without link… and the issues start to appear:

-the options without link are not displayed (they appear only if they have childs on the next level).
-OK, therefore I added a fake link to these lines.
-I used Sc_menu_disable macro to disable the menu.

But I found out that if the options “hide menu items” is enabled the sc_mennu_disable is removing the item taher just disabling.

So is there a way to disable a menu item without using sc_menu_disable? With a java script call or someting?

Yes, it is like that. If no items is linked, menu will not show.

Why would you like to use java script instead of bulid-in macro? I am asking because I do not understand.