Page 1 of 1

News pagination with NOFOLLOW

Posted: Mon Aug 11, 2008 10:18 am
by faglork
Hi,

when you add a news overview to your home page and use pagination, you wont get pretty URLs.
The code in the template is:

Code: Select all

{if $pagecount > 1}
  <p>
{if $pagenumber > 1}
{$firstpage} {$prevpage} 
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber < $pagecount}
 {$nextpage} {$lastpage}
{/if}
</p>
{/if}
Now, you get duplicate content. Because the next "newspage" is loaded in the same page (the home page in my example), but gets a different URL. A nasty long one.

There links should either have a "rel=nofollow" atribute or use pretty URLs.

Any solution, anyone? Do I miss something?

Cheers,
Alex

Re: News pagination with NOFOLLOW

Posted: Mon Aug 11, 2008 8:23 pm
by Dr.CSS
Do you have a dedicated News page for detail view, or set one in the News admin, do you use pretty internal URL or mod_rewrite, do you have hierarchy on or off in config.php...

More info is all ways nice...

Re: News pagination with NOFOLLOW

Posted: Mon Aug 11, 2008 10:30 pm
by faglork
mark wrote: Do you have a dedicated News page for detail view,
I am not talking about detail view/news page. I have that. The problem is in the pagination of the summary.
You can see it here, for example:
http://www.pretzfeld.de
Left column, page through the news and look at the URLs ...
mark wrote: do you use pretty internal URL or mod_rewrite, do you have hierarchy on or off in config.php...
mod_rewrite / hierarchy on

Cheers,
Alex

Re: News pagination with NOFOLLOW

Posted: Mon Aug 11, 2008 10:54 pm
by Dr.CSS
Yes yuk...