S
S
sabanovvv2014-06-19 14:58:30
Drupal
sabanovvv, 2014-06-19 14:58:30

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

939f425e0a7c4dbd92f76819d7b9c42c.PNG

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Misha7, 2014-06-19
@Misha7

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

A
Alexey, 2014-06-19
@AlexFreem

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 question

Ask a Question

731 491 924 answers to any question