Blog Previous and Next links not working properly

9 posts by 2 authors in: Forums > CMS Builder
Last Post: April 28, 2008   (RSS)

By soj - April 27, 2008

I'm having some trouble getting my blog links and css to work on a customized blog despite using the full URL in all the links.

http://74.54.199.50/~stormrep/index.php

The previous and next links are not directing to the correct pages. I have this blog section embedded in the homepage rather than the pageList viewer, which is probably the problem, but that's where I need it.

Any help would be appreciated! TIA!

soj

Re: [soj] Blog Previous and Next links not working properly

By Dave - April 28, 2008

They're not showing up as links at all for me? Do you have multiple viewers on that page? What version are you running?
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Blog Previous and Next links not working properly

By soj - April 28, 2008

Hi Dave, I'm running version 1.12. Ooops, the second entry got deleted. Try it now, if you would be so kind, I've created 2 more test entries.

TIA, soj

Re: [soj] Blog Previous and Next links not working properly

By Dave - April 28, 2008

Can you attach the file?

Make sure that the perPage and pageNum are set to blank as well.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Blog Previous and Next links not working properly

By soj - April 28, 2008

Here ya go. The number of pages is set to 1. That's what I needed for this site.

TIA, soj

Re: [soj] Blog Previous and Next links not working properly

By Dave - April 28, 2008

Ok, try setting pageNum to blank like this:

$options['pageNum'] = '';

What that will do is automatically get the page num from the url (index.php?page=2) or load page 1 by default.

Let me know if that does the trick for you.
Dave Edis - Senior Developer
interactivetools.com

Re: [soj] Blog Previous and Next links not working properly

By Dave - April 28, 2008

You bet, just create the page you want and replace the prev/next links with this:

<a href="yourNewPage.php?page=<?php echo $listDetails['prevPageLink'] ?>">&lt;&lt; prev</a>

<a href="yourNewPage.php?page=<?php echo $listDetails['nextPageLink'] ?>">next &gt;&gt;</a>

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Blog Previous and Next links not working properly

By soj - April 28, 2008

Perfect! Thanks so much!
soj