News pagination with NOFOLLOW

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
faglork

News pagination with NOFOLLOW

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: News pagination with NOFOLLOW

Post 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...
faglork

Re: News pagination with NOFOLLOW

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: News pagination with NOFOLLOW

Post by Dr.CSS »

Yes yuk...
Locked

Return to “CMSMS Core”