<xen:if is="{$resource.resource_category_id} == 123">
<xen:container var="$head.noindex"><meta name="robots" content="noindex" /></xen:container>
</xen:if>
To add this into robots.txtIf you just want to disallow the entire RM, then you can block /resources/
I mean category in forum, not category in Resources manager.However, if you are trying to block a single category, you can't do this via robots.txt.
You'd be checking thread_view and acting based on {$forum.node_id} .
<xen:if is="{$forum.node_id} == 123">
<xen:container var="$head.noindex"><meta name="robots" content="noindex" /></xen:container>
</xen:if>
If node ID is for example 123
This will be right code:
Code:<xen:if is="{$forum.node_id} == 123"> <xen:container var="$head.noindex"><meta name="robots" content="noindex" /></xen:container> </xen:if>
Where to put that code in thread_view template?
That should be correct. It can go anywhere.
We use essential cookies to make this site work, and optional cookies to enhance your experience.