Answer the question
In order to leave comments, you need to log in
How to make back and forth buttons for a portfolio site?
Hello everyone, I’m making a portfolio website for the site, so far I don’t have enough knowledge, so I’m turning here.
How to make buttons: show next job and show previous job without reloading the site?
CMS Drupal (isotope filter)
www.subjay.ru/node/8
It should look like this
Answer the question
In order to leave comments, you need to log in
With ajax this is easy. ruseller.com/project.php?id=7
Get the html markup for the next job and load it into a div. The load method will help you. There will be questions write))
As an option and the fastest solution - you can use the basic functionality of the Views
module
. The solution is simple in my opinion. We make a view, in it we specify all the fields that we want to display on the page. Everything is convenient there. Then we set the settings showed - using pagination (it can also be styled later), and output 1 material per page. And lastly, enable AJAX in the view settings. Everything is easy and simple :)
But keep in mind that this is a workaround. If you need competent and working functionality, then you will have to code a little on AJAX + HTML5History (as mentioned above). AJAX for page loading and history for navigation. More handwritten code.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question