I need to use an alternate navigation set for a number of categories and products. I was thinking it would just be easier to create two Alternate Pages, one for the categories and one for the products, then assign it as needed. With layouts of old, I would have been able to just change the navbar token in the Alternate Page. With Iron & Wool ReadyTheme (and with the others) the <mvt:item name="navbar" /> token is in the Global Header. I think I just need to get my conditionals right and it might work. I don't link using <mvt:if expr="l.settings:page:code NE 'alternate_page_code"> will work, so how do I go about getting it to recognize the Alternate Display Page assigned at the category or product level?
Announcement
Collapse
No announcement yet.
Assigning Alternate Navigation Set to Prods/Categories using Alternate Display Pages
Collapse
X
-
Assigning Alternate Navigation Set to Prods/Categories using Alternate Display Pages
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
-
The Navigation Bar item calls in a ReadyTheme Navigation Set. You should be able to put your conditionals in the Navigation Bar to call different ReadyTheme Navigation Sets.Matt Zimmermann
Miva Web Developer
Alchemy Web Development
https://www.alchemywebdev.com
Site Development - Maintenance - Consultation
Miva Certified Developer
Miva Professional Developer
https://www.dev4web.net | Twitter
-
Originally posted by Matt Zimmermann View PostThe Navigation Bar item calls in a ReadyTheme Navigation Set. You should be able to put your conditionals in the Navigation Bar to call different ReadyTheme Navigation Sets.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
-
Usually that conditional would work. You might try having the conditional be by the category or product code. Assuming you are using navigation sets within the conditional, do you have ReadyThemes assigned to the new pages?Matt Zimmermann
Miva Web Developer
Alchemy Web Development
https://www.alchemywebdev.com
Site Development - Maintenance - Consultation
Miva Certified Developer
Miva Professional Developer
https://www.dev4web.net | Twitter
Comment
-
Originally posted by Matt Zimmermann View PostUsually that conditional would work. You might try having the conditional be by the category or product code. Assuming you are using navigation sets within the conditional, do you have ReadyThemes assigned to the new pages?
Yes, the ReadyTheme item is assigned to the new pages. Doing it by the product code will become quite cumbersome as there are at least 1000 products that need to use this Navigation Set.
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
-
I don't see where are getting l.settings:page:code to match. Using token viewer or inspector, I only see the page code reference as the Screen="" variable in the l.settings:urls array. But, heck, I just spent only 10 minutes looking so there's that.Bruce Golub
Phosphor Media - "Your Success is our Business"
Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
phosphormedia.com
Comment
-
Originally posted by Bruce - PhosphorMedia View PostI don't see where are getting l.settings:page:code to match. Using token viewer or inspector, I only see the page code reference as the Screen="" variable in the l.settings:urls array. But, heck, I just spent only 10 minutes looking so there's that.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
-
I have run through some tests and been able to make it work. The important part is that the conditional is case-sensitive.
With an alternate page code of CTGY_PARTS, this works:
Code:<mvt:if expr="l.settings:page:code NE 'CTGY_PARTS'"> this is not a parts page <mvt:elseif expr="l.settings:page:code EQ 'CTGY_PARTS'"> this is a parts page!!!! </mvt:if>
Code:<mvt:if expr="l.settings:page:code NE 'CTGY_parts'"> this is not a parts page <mvt:elseif expr="l.settings:page:code EQ 'CTGY_parts'"> this is a parts page!!!! </mvt:if>
Matt Zimmermann
Miva Web Developer
Alchemy Web Development
https://www.alchemywebdev.com
Site Development - Maintenance - Consultation
Miva Certified Developer
Miva Professional Developer
https://www.dev4web.net | Twitter
Comment
-
Thanks Matt, I've got it working. Now I have to figure out what site I tried adding this code to. Every trace of the work I did, is not in the site that I was pretty darn sure I was working in...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
-
Which reminds me. I'd love the ability to "protect" a template. Mostly to ensure that complex functionality doesn't get un-intentionally changed as has happened in the past. I have started using a separate page template to place these complex features (sort of like a "function repository" which is also great cause I can just load that template onto a new site and have all my little custom widgets available).Bruce Golub
Phosphor Media - "Your Success is our Business"
Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
phosphormedia.com
- 1 like
Comment
-
Originally posted by Bruce - PhosphorMedia View PostWhich reminds me. I'd love the ability to "protect" a template. Mostly to ensure that complex functionality doesn't get un-intentionally changed as has happened in the past. I have started using a separate page template to place these complex features (sort of like a "function repository" which is also great cause I can just load that template onto a new site and have all my little custom widgets available).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
Comment