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).
Announcement
Collapse
No announcement yet.
Colossus omega-navigation type menu needed for Shadows
Collapse
X
-
Colossus omega-navigation type menu needed for Shadows
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
Tags: None
-
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
-
Originally posted by Nick View PostHere is the tutorial on how to add the omega navigation to the Shadows Framework: https://docs.miva.com/developer/addi...ows-mega-menu/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
-
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
-
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>
Nicholas Adkins
Technical Training Specialist / Miva, Inc.
[email protected]
https://www.miva.com/mivalearn
- 1 like
Comment
-
Thanks Nick, let me see how far I can get without blowing things up too badlyLeslie 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
-
Nick - question - In this levelCode:l.settings:navigationitem_level2:items
Code:l.settings:navigationitem:item_info
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
-
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
-
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 optionLeslie 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
Comment