Giter Club home page Giter Club logo

Comments (3)

nk-o avatar nk-o commented on May 28, 2024

In plans 1 additional style for the filter that looks like dropdown.

To add search you will need to customize default templates for this filter. I don't think search will be added in the near future.

from visual-portfolio.

carson-nr avatar carson-nr commented on May 28, 2024

Had an issue when visitors would use the back button to return to a filtered results page.

Some devices cached the page in its original state, and others cached the page in it's filtered state.
(Behavior was very inconsistent. the same browser would behave differently on different devices)

I was able to conclude this was due to the way the AJAX call is used to reload the page, so that the query parameters are hidden from the address bar.

commenting out the e.preventDefault() in assets/js/script.js allowed the page to transition naturally, using the query parameters. This allowed each filtered result to be cached as a page individually.

I've started looking into submitting a pull request to allow this to be a toggle setting, but was not sure exactly how to best implement this to match your style.

from visual-portfolio.

nk-o avatar nk-o commented on May 28, 2024

@Carson2006 which devices are you talking about? The latest Android Chrome and iOs Safari don't "cache" the page state.

Since we use AJAX loading without state change, the browser doesn't know the page was changed (actually it wasn't changed, we only loaded the new content for the Portfolio shortcode).

If you want to change address state once AJAX loaded, first we need to create better permalinks for the filters and sort. #7. But currently, I don't know how to make it possible.

p.s. Better to create a separate issue.

from visual-portfolio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.