Left admin menu depth

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Scot - ScotsScripts.com
    Mivite








    • Apr 2006
    • 461

    #1

    Left admin menu depth

    How do you create a plus sign in the left menu when making a util module? I need to do some utility left menu nesting.

    I've only found two "public" functions so far that affect this:

    LeftNavigation_Level(...)

    and

    LeftNavigation_Dot( ...)

    Nesting the "dot" function inside the "level" function ALMOST does it, but the problem is that even though the plus sign for opening a menu is in the raw HTML, a CSS class called "image_hide" gets in the way and hides the image. If I remove that class, then the little plus sign shows up just fine, and although not indented properly, it also works.

    Is there a variable to set or a function I'm missing? I need to make that little plus sign instead of just displaying everything without giving the admin a chance to decide.

    Thanks!
    M.A.D.* since 1997

    http://www.scotsscripts.com

    *miva application developers
  • Scot - ScotsScripts.com
    Mivite








    • Apr 2006
    • 461

    #2
    Re: Left admin menu depth

    Never mind, I found a way around it.
    M.A.D.* since 1997

    http://www.scotsscripts.com

    *miva application developers

    Comment

    • Gordon - Phosphor Media
      Developer Partner


      • Mar 2006
      • 448

      #3
      Re: Left admin menu depth

      Could you do us all a solid and post your workaround?

      Also, where is the public documentation of the _Dot and _Level functions? It is not in the LSK and the only mention I find via Google is Merchant 4 source.

      BTW, something I found when using _Dot inside StoreUtilityModule_LeftNavigation: the indent parameter needs to be overridden and set to 1 in order to make the module link line up with most other utilitiy module links.
      Gordon Currie
      Phosphor Media - "Your Success is our Business"

      Improve Your Customer Service | Get MORE Customers | Edit Any Document Easily | Free Modules | Follow Us on Facebook
      phosphormedia.com

      Comment

      • Scot - ScotsScripts.com
        Mivite








        • Apr 2006
        • 461

        #4
        Re: Left admin menu depth

        THe "dot" function is in the documentation somewhere for UTIL modules. The "level" function I found in the source code for Merchant 4.

        As far as the workaround goes, I use the UTIL "Screen" function to display a toggle for opening the tree in the left menu. It sets a config variable that gets read in the left menu function in the module and then either displays the menu data (open) or doesn't, (closed).

        So the drawback is that you don't click an X in the menu, you click something on the SUTL screen, but it's only one extra step if you have the Utilities menu open and it works well for my situation.
        M.A.D.* since 1997

        http://www.scotsscripts.com

        *miva application developers

        Comment

        Working...
        X