[[+content_image]]
D
D
DeeUs2018-09-03 15:31:06
MODX
DeeUs, 2018-09-03 15:31:06

How to remove rel="next" links in modx?

Hello!
Several blocks are displayed on the news page:

block 1
<div id="pdopage1">
    				    <div class="flex-container news-container rows">
        					[[!pdoPage?
                                &parents=`2`
                                &tpl=`tpl-item-new`
                                &includeTVs=`img`
                                &processTVs=`img`
                                &limit=`6`
                                &where=`[[snippYear? &news_this_year=`1`]]`
                                
                                &ajaxMode=`button`
                                &ajaxElemWrapper=`#pdopage1`
                                &ajaxElemRows=`#pdopage1 .rows`
                                &ajaxElemPagination=`#pdopage1 .pagination`
                                &ajaxElemLink=`#pdopage1 .pagination a`
                                &ajaxElemMore=`#pdopage1 .btn-more`
                                &ajaxTplMore=`tpl_btn_more_news`
                            ]]
                        
                        </div>
                        [[!+page.nav]]
    				</div>

block 2
<div id="pdopage2">
        				<div class="flex-container news-container rows">
                    
    						[[!pdoPage?
                                &parents=`2`
                                &tpl=`tpl-item-new`
                                &includeTVs=`img`
                                &processTVs=`img`
                                &limit=`6`
                                &where=`[[snippYear? &news_old_year=`1`]]`
                                
                                &ajaxMode=`button`
                                &ajaxElemWrapper=`#pdopage2`
                                &ajaxElemRows=`#pdopage2 .rows`
                                &ajaxElemPagination=`#pdopage2 .pagination`
                                &ajaxElemLink=`#pdopage2 .pagination a`
                                &ajaxElemMore=`#pdopage2 .btn-more`
                                &pageVarKey=`page_and`
                                &ajaxTplMore=`tpl_btn_more_news`
                                
                                
                                &pageVarKey=`page2`
                                &pageNavVar=`page2.nav`
                            ]]
        					
    					</div>
    					[[!+page2.nav]]
    				</div>

block 3
<div id="pdopage3">
        				<div class="flex-container news-container rows">
                    
    						[[!pdoPage?
                                &parents=`2`
                                &tpl=`tpl-item-new`
                                &includeTVs=`img`
                                &processTVs=`img`
                                &limit=`6`
                                &where=`[[snippYear? &news_archive=`1`]]`
                                
                                &ajaxMode=`button`
                                &ajaxElemWrapper=`#pdopage3`
                                &ajaxElemRows=`#pdopage3 .rows`
                                &ajaxElemPagination=`#pdopage3 .pagination`
                                &ajaxElemLink=`#pdopage3 .pagination a`
                                &ajaxElemMore=`#pdopage3 .btn-more`
                                &pageVarKey=`page_and`
                                &ajaxTplMore=`tpl_btn_more_news`
                                
                                
                                &pageVarKey=`page3`
                                &pageNavVar=`page3.nav`
                            ]]
        					
    					</div>
    					[[!+page3.nav]]
    				</div>


Tried deleting
&pageVarKey=`page3`
&pageNavVar=`page3.nav`
and
[[!+page3.nav]]
didn't help.

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
I
Igor, 2018-09-13
@ig0r74

&setMeta=`0`
https://docs.modx.pro/komponentyi/pdotools/snippet...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question