Announcement

Collapse
No announcement yet.

NorCascade - Another Automatic Cascading Menu for Actinic 5 or 6

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

    #16
    Is there any wat to do that without going in and writing the code for each subsection?

    Comment


      #17
      Eric,

      Are you writing about NorCascade or NorTree? As there are now several conversations going on here simultaneously could you let me know exactly what you need to achieve.

      Ta . . . Norman
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #18
        I am using NorCascade. The store I am developing has eight main categories. Some of the categories have a long name (Aquatic Supplies) and some are small (Apparel). I would like to be able to specify the width for each of the top level cells so the nav bar is not so big. I would pont you to an example of what I am working on, but it is on a server behind a firewall which does not allow outside access.

        Comment


          #19
          I assume you have a horizontal layout of the top-level cells and want to make some of them smaller when they contain less text.

          Unfortunately the way these menus are generated requires all cells at the same level to be the same size.

          Norman
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #20
            Auto Width of Horizontal Menus

            Actually It can be done but you'll need to patch the JavaScript.

            In your Site folder (usually site 1) edit norcascade_pop_tail.js

            Code:
            look for the line
            
                var link = urls[I].sURL;
            
            Add the following code underneath it.
            
                // Auto Width of Horizontal Menus patch
                if ( (! orientation) && AutoWidth )
                  {
                  var thistext = names[I].sName.replace(/&#\d+;/g,"-");  // replace escape sequences with minus
                  var numchars = thistext.length;
                  LineHeight = Math.floor((CharWidth * numchars) + Buffer);
                  }
            
            
            Save that file.
            
            
            Run NorCascade
            
            In Advanced / Extra Vars add the lines.
            
            var CharWidth = 7;       // width of a character in pixels 
            var AutoWidth = true;  //  true enables auto width or false disables
            var Buffer = 15;           // padding to add to all lines
            
            
            Now do Save Settings / Create Vars and you should have auto width horizontal menus.
            
            You can adjust the character spacing by setting CharWidth higher or lower.  Fractional values are OK.
            
            Buffer add some extra spacing to allow for navigation icons.  Use integer values.
            
            You can turn off the feature by setting AutoWidth to false
            Norman
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #21
              You are the man. If I lived near you, I'd buy you a beer.

              Thanks for the help.

              Comment


                #22
                NorCascade Update.

                I've now added the Auto Size option for horizontal menus to the download. You can now configure via the GUI it for each menu level. See www.rouxel.cwc.net/actinicstuff.html for the update info.


                Norman
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment

                Working...
                X