Answer the question
In order to leave comments, you need to log in
Why doesn't the Globals condition work?
I registered the following in init.php, there is a checkbox in the property with the value Y, for some reason it does not change the content.
AddEventHandler("main", "OnEndBufferContent", "ChangeMyContent");
function ChangeMyContent(&$content)
{
global $APPLICATION;
if ($GLOBALS["NO_INDEX"] == "Y"){ $content = str_replace('noindex, follow','index, follow',$content); }
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question