zone1creative |
03-24-2015 02:14 AM |
changing the priority in the sitemap.xml file XC4
Been asked this a lot but never looked into it before
If you ever wanted to change the priority or changefreq of the links in your sitemap.xml then you can edit the file
modules/XML_Sitemap/config.php
look for the following block and edit as required
PHP Code:
$config['XML_Sitemap']['items'] = array( 0 => array( 'type' => 'C', 'items_function' => 'xmlmap_get_categories', 'properties' => array( 'lastmod' => '', 'changefreq' => 'weekly', 'priority' => '0.8', ), ), 1 => array( 'type' => 'P', 'items_function' => 'xmlmap_get_products', 'properties' => array( 'lastmod' => '', 'changefreq' => 'monthly', 'priority' => '0.6', ), ), 2 => array( 'type' => 'M', 'items_function' => 'xmlmap_get_manufacturers', 'properties' => array( 'lastmod' => '', 'changefreq' => 'weekly', 'priority' => '0.8', ), ), 3 => array( 'type' => 'S', 'items_function' => 'xmlmap_get_pages', 'properties' => array( 'lastmod' => '', 'changefreq' => 'never', 'priority' => '0.2', ), ), 4 => array( 'type' => 'E', 'items_function' => 'xmlmap_get_extra', 'properties' => array( 'lastmod' => '', 'changefreq' => 'monthly', 'priority' => '0.4', ), ), 5 => array( 'type' => 'H', 'items_function' => 'xmlmap_get_home', 'properties' => array( 'lastmod' => '', 'changefreq' => 'daily', 'priority' => '1.0', ), ), );
|