Learn how to add paging to your nuke News module.



Hire Us!Download Video(2)Comments


I am sure you have seen websites that have the cool 1 2 3 4 5...Next Prev at the bottom of their news module. It's really easy to do and this tutorial will help you. This is simply using a tutorial found on google and applying it to nuke.

Files to edit:
modules/News/index.php(Some older versions of nuke use NukeNews instead of News)

Steps :
The first thing is to find where in the file to edit. We are looking for the main query that displays the news blocks on the front page. This is inside the function theindex and the line of codes look similar to the following.

Above that code we place the first part of our paging codes. I have commented the codes so you know what it does.

We now need to apply our limits to the actual query. Find back the same main query as below and add the new limit.

Now we add the paging numbers at the bottom 1 2 3 4 Next Prev... At the bottom of the function theindex look for include("footer.php"); and above that place the following.

That's it! Save and upload, you are done!



Hire Us!Download Video(2)Comments