pandaman Posted December 5, 2017 Share Posted December 5, 2017 Hi, everyone! I'm going to start a new nice site, but the client wanted absolutely a site like one he found surfing the web. It has a smart navigation system, like an app, so you won't find "jumps" between the pages. It's super cool and i found it uses page.js as client-side routing, loading the main content with ajax calls. So, this is my question. Do you think i will find some problem using this script, or maybe i'll find some conflicts with processwire internal routing? Maybe here there is someone who already used this type of client-side routing with PW? I'd lile to use PW, with many different page templates... Link to comment Share on other sites More sharing options...
Pixrael Posted December 5, 2017 Share Posted December 5, 2017 You can use this: https://github.com/miguel-perez/smoothState.js Demos: https://rawgit.com/miguel-perez/smoothState.js/master/demos/sidebar/index.html https://rawgit.com/miguel-perez/smoothState.js/master/demos/csstricks/index.html you don't need to do anything complex on your PW website 3 Link to comment Share on other sites More sharing options...
teppo Posted December 5, 2017 Share Posted December 5, 2017 Got to agree with @Pixrael. While page.js seems nice, it's probably overkill in this case, and since you already have ProcessWire to provide routing, it makes sense to just add JavaScript-powered transitions on top of that. I've used http://barbajs.org/ in the past for this purpose. As a bonus compared to pure JavaScript approach you won't have to worry about search engines, non-JS enabled browsers, etc. as they'll still get the "regular page load experience" 5 Link to comment Share on other sites More sharing options...
dragan Posted December 5, 2017 Share Posted December 5, 2017 Perhaps you can use this brandnew site profile? https://processwire.com/talk/topic/17926-rest-api-site-profile/ Link to comment Share on other sites More sharing options...
felix Posted December 5, 2017 Share Posted December 5, 2017 I've just recently used barba.js when relaunching the frontend of https://www.priotas.de/ (a processwire based website). As teppo mentioned: That's pretty much what you're looking for. 4 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now