ininges Member May 29, 2022 #1 Hello, I want to add noindex to threads that have certain tag - may be someone can help me to figure how to do this... thanks in advance. Kind regards
Hello, I want to add noindex to threads that have certain tag - may be someone can help me to figure how to do this... thanks in advance. Kind regards
nocte Well-known member May 29, 2022 #2 In template thread_view you can try changing this line: HTML: <xf:if is="!$thread.isSearchEngineIndexable()"> to: HTML: <xf:if is="!$thread.isSearchEngineIndexable() || in_array('tagname', $thread.tags)"> Upvote 0 Downvote
In template thread_view you can try changing this line: HTML: <xf:if is="!$thread.isSearchEngineIndexable()"> to: HTML: <xf:if is="!$thread.isSearchEngineIndexable() || in_array('tagname', $thread.tags)">
ininges Member Jun 3, 2022 #3 Thanks a lot, was already resolved but I am sure it will help somebody else. Upvote 0 Downvote