typo3tx-news

How to insert meta-tag robots in typo3 tx_news in paginated list


is it possible to insert a meta-tag robots->noindex in paginated pages of the list - not in the first but in all other?

typo3 8.7 - tx_news 6.3.0

cu Volker


Solution

  • the solution (for me) is to insert

    <f:if condition="{pagination.current}>=2">
        {v:page.header.meta(name: 'robots', content: 'NOINDEX,FOLLOW')}
    </f:if>
    

    into viewhelpers/widget/paginate/index.html

    vhs-extension is allready installed.

    cu Volker