Adding meta tag depending on article status
Want to add the noindex, follow meta tag to articles I have deleted - moved to trash bin. This in time will reduced the number of 404's as I eventually delete articles all together.
Would this be possible by doing something like:
<vte:if test="{article.status} = -2">
<meta name="robots" content="noindex,follow" />
<vte:else>
<meta name="robots" content="index,follow" />
</vte:else>
</vte:if>
__________________
Vivvo Vs Wordpress
Last edited by berto; 05-04-2012 at 06:34 PM.
|