Announcement

Collapse
No announcement yet.

Hide toolbar items from menu.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hide toolbar items from menu.

    Hi all,

    I need to hide toolbar items from the Menu,

    I have tried this

    if ({sc_menu_item} == "item_5")

    {
    sc_btn_display("btn_1","off");
    }

    I have tried this

    if ({sc_menu_item} == "item_5")
    {
    echo "<style>#btn_1 { display: none !important; }</style>";
    }


    all without success.

    any input would be very much appreciated

  • #2
    I think it should be:

    Code:
    if ({sc_menu_item} == "item_5")
    
    {
    sc_btn_display("item_5","off");
    }

    Comment


    • #3
      Here is the basic idea.
      I assume you redirect to a different application by clicking on a menu item.

      If so, put this code in the onApplicationInit or onScriptInit event of the application otherwise use a blank application.
      It doesn't work in the menu application itself.

      Code:
      echo "<script>$('#btn_1', parent.window.document).css('display', 'none');</script>";
      That should get you on the way.

      jsb

      Comment

      Working...
      X