Author Topic: News module rel = prev next  (Read 121 times)

Offline dbs

  • Betatester
  • **
  • Posts: 7225
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
News module rel = prev next
« on: May 12, 2018, 11:23:23 AM »
Hello, for SEO reasons, if news have pagination, i want in the <head>:
Code:
Only registered users can see contents. Please click here to Register or Login.
My try
In news module view.php added 2 classes (news-next-page, news-prev-page) in lines 152 to 171 (4 times) for the generated prev-next-links.

Created a droplet and added it to the settings footer of news module
Code:
Only registered users can see contents. Please click here to Register or Login.
This works, but i know it is no good code.
Maybe somebody can optimize it. :-)

Offline DarkViper

  • Forum administrator
  • *****
  • Posts: 2906
  • Gender: Female
Re: News module rel = prev next
« Reply #1 on: May 13, 2018, 04:52:33 PM »
Code:
Only registered users can see contents. Please click here to Register or Login.:-)
Der blaue Planet - er ist nicht unser Eigentum - wir haben ihn nur von unseren Nachkommen geliehen

"You have to take the men as they are ... but you can not leave them like that !!" :-P
Ein einziger Buchstabendreher kann einen ganzen Satz urinieren.

Offline dbs

  • Betatester
  • **
  • Posts: 7225
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: News module rel = prev next
« Reply #2 on: May 13, 2018, 06:31:01 PM »
Looks a little bit better and shorter. Thx.
2 in 1 is maybe also possible. Will try it.

Offline DarkViper

  • Forum administrator
  • *****
  • Posts: 2906
  • Gender: Female
Re: News module rel = prev next
« Reply #3 on: May 13, 2018, 11:44:48 PM »
2 in 1  only?
if, then n in 1 please  ;-)
Code:
Only registered users can see contents. Please click here to Register or Login.
Der blaue Planet - er ist nicht unser Eigentum - wir haben ihn nur von unseren Nachkommen geliehen

"You have to take the men as they are ... but you can not leave them like that !!" :-P
Ein einziger Buchstabendreher kann einen ganzen Satz urinieren.

Offline dbs

  • Betatester
  • **
  • Posts: 7225
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: News module rel = prev next
« Reply #4 on: May 14, 2018, 08:21:45 AM »
Looks professional and works. Thank you very much  (Y)
I had tried also with preg_match_all and foreach, but ... forget it.  :-)