Skip to content
/ REDMAP Public

Scripts for creating sitemap.xml in cms bitrix

Notifications You must be signed in to change notification settings

ilyayak/REDMAP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

REDMAP

Sitemap.xml for CMS 1C Bitrix by Ivan Shabanov

  1. Copy files to php_interface/include/

  2. Set up the sitemap.php file

  • Set up all infoblocks so that they correctly form links to pages.
  • Enable All infoblocks that need to be output to a file
      $arBlocks[] = array(
            'IBLOCK_ID' => 1, 
            'SECTION' => 'Y', 
            'DETAIL' => 'Y'   
        );
  • Add all menu files used on the site

    $sitemap->AddPagesFromMenuFile('.top.menu.php', $http.$host); 
  • Add Pages

    $sitemap->AddPage($http.$host.'/stock/');
  • Add ignored pages (pages that should not be included in the file)

     $sitemap->AddIgnorePage($http.$host.'/hidden/');
     
  1. in init.php add a line
    include_once('sitemap.php');
  2. Add agent to GenerateSitemapXmlExt();

Download releases