Answer the question
In order to leave comments, you need to log in
[[+content_image]]
How to set up rel="next" and rel="prev" for pagination in Modx?
I set up a news page with getpage
[[!getPage?
&elementClass=`modSnippet`
&element=`getResources`
&showHidden=`1`
&parents=`57`
&limit=`4`
&pageVarKey=`page`
&includeTVs=`
1` &pageFirstTpl=` First `
&pageLastTpl=` Last `
&tpl=`articleTpl` ]]
Next comes pagination, using [[!+page.nav]]
Here is a link to the site:
https://speak-time.com/o-kompanii/novosti-i-stati
For correct SEO, you need to set up rel meta tags ="next" and rel="prev" on every pagination page. How can I do that?
And yet, maybe someone knows how to make pagination page urls more SEO-friendly (how to say seo-friendly in Russian correctly))? Because now they are ordered like this: ?page=2
This is not very good, and the pages also duplicate the title. If anyone can help, I would be very grateful, because I did not find this information.
Answer the question
In order to leave comments, you need to log in
&pagePrevTp=`<li class="control"><a[[+classes]][[+title]] rel="prev" href="[[+href]]"><<</a></li>`
&pageNextTpl=`<li class="control"><a[[+classes]][[+title]] rel="next" href="[[+href]]">>></a></li>`
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question