Announcement

Collapse
No announcement yet.

Colossus omega-navigation type menu needed for Shadows

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

    Colossus omega-navigation type menu needed for Shadows

    Has anyone found any code repositories that might have primary navigation like the Omega style navigation that Colossus uses that is suitable for Shadows? The menu is the only piece that the store owner wants from Colossus - everything else is to be Shadows. Can the CSS (and any javascript) be "easily" isolated and used in Shadows? (Yeah, I think I have asked this question before and maybe more than once).
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    #2
    Here is the tutorial on how to add the omega navigation to the Shadows Framework: https://docs.miva.com/developer/addi...ows-mega-menu/
    Nicholas Adkins
    Technical Training Specialist / Miva, Inc.
    [email protected]
    https://www.miva.com/mivalearn

    Comment


      #3
      Originally posted by Nick View Post
      Here is the tutorial on how to add the omega navigation to the Shadows Framework: https://docs.miva.com/developer/addi...ows-mega-menu/
      Thanks so much Nick!!!
      Leslie Kirk
      Miva Certified Developer
      Miva Merchant Specialist since 1997
      Previously of Webs Your Way
      (aka Leslie Nord leslienord)

      Email me: [email protected]
      www.lesliekirk.com

      Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

      Comment


        #4
        FYI - this works great. The store owner is now asking if there is a way to let the Theme Component > Navigation Set automatically "know" when a category has been deactivated.
        Leslie Kirk
        Miva Certified Developer
        Miva Merchant Specialist since 1997
        Previously of Webs Your Way
        (aka Leslie Nord leslienord)

        Email me: [email protected]
        www.lesliekirk.com

        Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

        Comment


          #5
          This can be done using conditional logic and the Category_Load_Code/Product_Load_Code functions.

          Within the <mvt:foreach iterator="navigationitem" array="readytheme:navigationitems"> loop you could check the l.settings:navigationitem:link_type value and if it is equal to C then it is a category and P is a product. Depending on what the value is you can pass the l.settings:navigationitem:link_dest value to the appropriate function that will return the information about the record. Something like this:

          Code:
          <mvt:if expr="l.settings:navigationitem:link_type EQ 'C'">
              <mvt:do file="g.Module_Library_DB" name="l.void" value="Category_Load_Code( l.settings:navigationitem:link_dest, l.settings:navigationitem:item_info )" />
          <mvt:elseif expr="l.settings:navigationitem:link_type EQ 'P'">
              <mvt:do file="g.Module_Library_DB" name="l.void" value="Product_Load_Code( l.settings:navigationitem:link_dest, l.settings:navigationitem:item_info )" />
          </mvt:if>
          Then in that loop if l.settings:navigationitem:item_info:active is equal to 0 then the record is not active. Note: The same condition and functions would need to be run for each nested loop.

          Nicholas Adkins
          Technical Training Specialist / Miva, Inc.
          [email protected]
          https://www.miva.com/mivalearn

          Comment


            #6
            Thanks Nick, let me see how far I can get without blowing things up too badly
            Leslie Kirk
            Miva Certified Developer
            Miva Merchant Specialist since 1997
            Previously of Webs Your Way
            (aka Leslie Nord leslienord)

            Email me: [email protected]
            www.lesliekirk.com

            Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

            Comment


              #7
              Nick - question - In this level
              Code:
              l.settings:navigationitem_level2:items
              will the
              Code:
              l.settings:navigationitem:item_info
              need to be changed to for example
              Code:
              l.settings:navigationitem_level2:items_info
              ?
              Leslie Kirk
              Miva Certified Developer
              Miva Merchant Specialist since 1997
              Previously of Webs Your Way
              (aka Leslie Nord leslienord)

              Email me: [email protected]
              www.lesliekirk.com

              Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

              Comment


                #8
                lesliekirk Yes, here is a refresher on how <mvt:foreach> loop works with iterators: https://docs.miva.com/developer/deve...or_each_loops/
                Nicholas Adkins
                Technical Training Specialist / Miva, Inc.
                [email protected]
                https://www.miva.com/mivalearn

                Comment


                  #9
                  Thanks, Nick I got it working. It makes me think of so many options that would be nice in the Ready Theme Navigation sets - such as dynamically pulling in the categories, automatically turning off or on a category in the menu (versus having to go in and deactivate in the Navigation Set). It has the potential to become a great plug & play option
                  Leslie Kirk
                  Miva Certified Developer
                  Miva Merchant Specialist since 1997
                  Previously of Webs Your Way
                  (aka Leslie Nord leslienord)

                  Email me: [email protected]
                  www.lesliekirk.com

                  Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

                  Comment

                  Working...
                  X