Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {* Canonical link *}
- {block name='frontend_index_header_canonical'}
- {* Count of available product pages *}
- {$pages = ceil($sNumberArticles / $criteria->getLimit())}
- {if {config name=seoIndexPaginationLinks} && $showListing && $pages > 1}
- {* Previous rel tag *}
- {if $sPage > 1}
- {$sCategoryContent.canonicalParams.sPage = $sPage - 1}
- <link rel="prev" href="{url params = $sCategoryContent.canonicalParams}">
- {/if}
- {* Next rel tag *}
- {if $pages >= $sPage + 1}
- {$sCategoryContent.canonicalParams.sPage = $sPage + 1}
- <link rel="next" href="{url params = $sCategoryContent.canonicalParams}">
- {/if}
- {elseif !{config name=seoIndexPaginationLinks} || !$showListing}
- <link rel="canonical" href="{url params = $sCategoryContent.canonicalParams}" />
- {/if}
- {/block}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement