Last active
August 21, 2019 14:15
-
-
Save IgorMiroshin/b23a44983c5181d809fbaa5105cc08d5 to your computer and use it in GitHub Desktop.
SeoBitrix: display title and description for pagination pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$title = $APPLICATION->GetPageProperty("title"); | |
$description = $APPLICATION->GetPageProperty("description"); | |
if (preg_match("#PAGEN_\d=(\d*)#", $_SERVER['REQUEST_URI'], $matches)) { | |
$APPLICATION->SetPageProperty("title", $title . ' - Страница ' . $matches[1] . '.'); | |
$APPLICATION->SetPageProperty("description", $description . ' Страница - ' . $matches[1] . '.'); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment