So by setting up 2 variables for holding the desired values it becomes a bit easier. By default we will set them to noindex and nofollow and then do 2 checkes on each of the settings on the currentpage and overwrite the initial value with the value we want when a setting is true.
In the end we reference the variables in the content attribute separated by a comma.
I hope this works for you - There are most likely other ways of doing this but this is what I could come up with from the top of my mind and it should work just fine :)
merge noindex and nofollow
In my master template I have this code
It creates this
which is nice, but this would be nicer
Any suggestions to achieve this?
Best
Hi Jesper
One way of achieving it could be to do the following:
So by setting up 2 variables for holding the desired values it becomes a bit easier. By default we will set them to noindex and nofollow and then do 2 checkes on each of the settings on the currentpage and overwrite the initial value with the value we want when a setting is true.
In the end we reference the variables in the content attribute separated by a comma.
I hope this works for you - There are most likely other ways of doing this but this is what I could come up with from the top of my mind and it should work just fine :)
/Jan
is working on a reply...