Store has a filter with a couple dozen selections - is there a way to show the first 3 followed by a clickable "more"? I seem to recall at one point in time there was a scrollable overflow - is that gone (or was it a different ReadyTheme I saw that in?)
Announcement
Collapse
No announcement yet.
Display 3 Then a Clickable More
Collapse
X
-
Display 3 Then a Clickable More
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
-
Hi Leslie,
I think that might have been something else, I don't have that feature built into Shadows.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 PostHi Leslie,
I think that might have been something else, I don't have that feature built into 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
Comment
-
Hi Leslie,
You would need to do a count of all the facets in the group and then add in conditionals; similar to what is done with the primary navigation in Colossus.
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
-
you could just set the container height to show three items, and the overflow to hidden, then have a [more] button or link that simply changes the overflow visible,
Code:<div id="tunaFacet"> facets here </div> <a id="more_tuna" class="btn button">More</a> $('#more_tuna).click(function(e){ $('#more_tuna').css('overflow','auto'); });
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 Postyou could just set the container height to show three items, and the overflow to hidden, then have a [more] button or link that simply changes the overflow visible,
Code:<div id="tunaFacet"> facets here </div> <a id="more_tuna" class="btn button">More</a> $('#more_tuna).click(function(e){ $('#more_tuna').css('overflow','auto'); });
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
-
Just making the facet filter container a fixed height and scrollable should work as well, IF the container is always going to contain say, more than three. Although, just setting MAX-Height instead of height might cover cases where sometimes its just one, other two, and even more 200.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
-
*edited*, haha I'm in the middle of eating lunch and Bruce beat me to it.
Originally posted by lesliekirk View Post
Yes, but will it push the div/page longer? I'm seeing an issue with a facet list that is much longer than the page content. It's "bleeding" into the next facet and all the way down to the Global Footer. I'm thinking that the overflow unfortunately is going to need to be scrollable.
.x-facet-set__list.x-collapsible-content__item[aria-hidden='false'] {
max-height: 50em;
}
Should fix the "bleeding" specific issue.
-Ryan
Comment
-
Originally posted by RTHOMASDESIGN View Post*edited*, haha I'm in the middle of eating lunch and Bruce beat me to it.
Removing/disabling the max-height on:
.x-facet-set__list.x-collapsible-content__item[aria-hidden='false'] {
max-height: 50em;
}
Should fix the "bleeding" specific issue.
-RyanLeslie 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 changed it to this to stop the bleeding
Code:x-facet-set__list.x-collapsible-content__item[aria-hidden="false"] { max-height: 30em; overflow-y: auto; overflow-x: hidden; }
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
- 1 like
Comment
Comment