Solved
Forum Discussion
TariqHussain
8 years agoBoss
Where have you added this code?
I don' t think there is a code issue. Could you please print some string inside a code and check of the page if it is reflecting on the page?
e.g
coreNode.id = ${coreNode.id} <#assign catIDs = ["Test_Archive", "Archiv_CallYa", "Archiv_Mobilfunk"] /> <#if catIDs?seq_contains(coreNode.id)> inside condtion <meta name="robots" content="noindex,follow"> <#else> outside condition </#if>
This will help you to debug what the issue.
housikrausi
8 years agoExpert
TariqHussainI inserted the code at this place:
After I inserted your code with the string, the following message appears in the browser: "coreNode.id = ArchivCallYa outside condition" .
What does it mean?
- TariqHussain8 years agoBoss
It is due to you have passed the wrong id inside an array.
The id of your category is ArchivCallYa and you have passed Archiv_CallYa
Please update the below variable
<#assign catIDs = ["Test_Archive", "Archiv_CallYa", "Archiv_Mobilfunk"] />
You can check id of any node by ${coreNode.id}