Previous/Next SEO optimized Url's

2 posts by 2 authors in: Forums > CMS Builder
Last Post: March 7, 2011   (RSS)

Re: [videopixel] Previous/Next SEO optimized Url's

By Jason - March 7, 2011

Hi,

The function getPrevAndNextRecords() doesn't currently support the option 'useSeoUrls'

If you already now the format of the url that you want, you can produce the url manually like this:

<?php if (@$nextRecord): ?>
<?php
$url = "blog.php/". str_replace(" ", "-",$nextRecord['title']). "-". $nextRecord['num'];
?>
<div><a href="<?php echo $url?>">Previous blog</a></div>
<?php endif; ?>


Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/