XF 2.2 Detect if Thread has tag

ininges

Member
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
 
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)">
 
Top Bottom