Announcement

Collapse
No announcement yet.

Display 3 Then a Clickable More

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

    Display 3 Then a Clickable More

    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?)
    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
    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

    Comment


      #3
      Originally posted by Matt Zimmermann View Post
      Hi Leslie,

      I think that might have been something else, I don't have that feature built into Shadows.
      What about adding a display 3 with 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

      Comment


        #4
        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


          #5
          Were you thinking that the "view more" would toggle the visibility of the additional items? E.g. user clicks "view more" and the remaining items would appear.

          Comment


            #6
            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


              #7
              Originally posted by Bruce - PhosphorMedia View Post
              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'); });
              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.

              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
                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


                  #9
                  *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.
                  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.
                  -Ryan

                  Comment


                    #10
                    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.
                    -Ryan
                    You would like it should have but I've still got the bleed issue. It's a branch, so I could share it.
                    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


                      #11
                      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

                      Comment

                      Working...
                      X