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:
    <xen:if is="{$pageTotal} > 1">
    add this:

    <xen:if is="{$prevPage}"><xen:container var="$head.relprev">
        <link rel="prev" href="{xen:link 'full:{$linkType}', $linkData, '_params={$linkParams}', 'page={$prevPage}'}" />
    <xen:if is="{$nextPage}"><xen:container var="$head.relnext">
        <link rel="next" href="{xen:link 'full:{$linkType}', $linkData, '_params={$linkParams}', 'page={$nextPage}'}" />
    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?

    <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>
            <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?
  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:
    <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