Skip to content

Instantly share code, notes, and snippets.

@IgorMiroshin
Last active August 21, 2019 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IgorMiroshin/b23a44983c5181d809fbaa5105cc08d5 to your computer and use it in GitHub Desktop.
Save IgorMiroshin/b23a44983c5181d809fbaa5105cc08d5 to your computer and use it in GitHub Desktop.
SeoBitrix: display title and description for pagination pages
$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