1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Lack of Interest article pagination rel="prev/next"

Discussion in 'Closed Suggestions' started by Floris, Sep 16, 2011.

  1. Floris

    Floris Guest

    Optic, M@rc and DeltaHF like this.
  2. Brahimium

    Brahimium Member

    You can do this for now, until implemented:

    edit the template page_nav.html, under:
    Code:
    <xen:if is="{$pageTotal} > 1">
    add this:

    Code:
    <xen:if is="{$prevPage}"><xen:container var="$head.relprev">
        <link rel="prev" href="{xen:link 'full:{$linkType}', $linkData, '_params={$linkParams}', 'page={$prevPage}'}" />
    </xen:container></xen:if>
    <xen:if is="{$nextPage}"><xen:container var="$head.relnext">
        <link rel="next" href="{xen:link 'full:{$linkType}', $linkData, '_params={$linkParams}', 'page={$nextPage}'}" />
    </xen:container></xen:if>
     
    Optic and Fuhrmann like this.
  3. Optic

    Optic Well-Known Member

    I noticed that on pagination inside a thread, and on thread_list within a forum that the first page has rel="start"

    Has this been partially implemented then or has it always been like this?

    e.g.
    Code:
    <div class="PageNav" data-page="1" data-range="2" data-start="2" data-end="6" data-last="143" data-sentinel="{{sentinel}}" data-baseurl="forums/general-xenforo-discussion-and-feedback.45/page-{{sentinel}}">
        <span class="pageNavHeader">Page 1 of 143</span>
        <nav>
            <a href="forums/general-xenforo-discussion-and-feedback.45/" class="currentPage" rel="start">1</a>
    Though no rel="prev" or rel="next" ..

    Google seems to figure out pagination easily but maybe there would be a minor SEO benefit implementing it?
    https://support.google.com/webmasters/answer/1663744?hl=en
     
  4. Mike

    Mike XenForo Developer Staff Member

    Nothing has been changed here in a long time, though we do output prev and next via link headers:
    Code:
    <link rel="prev" href="forums/closed-suggestions.15/page-4" /><link rel="next" href="forums/closed-suggestions.15/page-6" />
     
    Optic likes this.

Share This Page