Joss Posted November 25, 2013 Share Posted November 25, 2013 I have a little blog page which has various functions on the top half of the page, then the actual list of blog posts on the lower half. The blog posts are paginated. However, I would like to lose the other rubbish from the top of the page when I go to page 2 and onwards, leaving only the list of blog posts. Any bright ideas? Joss Link to comment Share on other sites More sharing options...
RyanJ Posted November 25, 2013 Share Posted November 25, 2013 Hi Joss, Could you wrap the content in a if statement checking if any page is greater then 1 do not display? Ryan does this in the pager module. Only shows the previous link if the page number is greater then 1. Link to comment Share on other sites More sharing options...
diogo Posted November 25, 2013 Share Posted November 25, 2013 Joss, you can get the page number with $input->pageNum, so: if ($input->pageNum < 2) { // Show the thing } 5 Link to comment Share on other sites More sharing options...
Joss Posted November 25, 2013 Author Share Posted November 25, 2013 What a lovely fellow! Yep, that works. I was wondering how to get hold of the page number. Thanks mate Joss Link to comment Share on other sites More sharing options...
RyanJ Posted November 25, 2013 Share Posted November 25, 2013 I guess an example on my part would have been helpful. Sorry about that. Good thing there is always someone else in the forum that steps up to the plate. 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