Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

changing the priority in the sitemap.xml file XC4

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 03-24-2015, 02:14 AM
  zone1creative's Avatar 
zone1creative zone1creative is offline
 

eXpert
  
Join Date: Jan 2009
Location: Hove, UK
Posts: 341
 

Default 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(
    
=> array(
        
'type'           => 'C',
        
'items_function' => 'xmlmap_get_categories',
        
'properties'     => array(
            
'lastmod'    => '',
            
'changefreq' => 'weekly',
            
'priority'   => '0.8',
        ),
    ),
    
=> array(
        
'type'           => 'P',
        
'items_function' => 'xmlmap_get_products',
        
'properties'     => array(
            
'lastmod'    => '',
            
'changefreq' => 'monthly',
            
'priority'   => '0.6',
        ),
    ),
    
=> array(
        
'type'           => 'M',
        
'items_function' => 'xmlmap_get_manufacturers',
        
'properties'     => array(
            
'lastmod'    => '',
            
'changefreq' => 'weekly',
            
'priority'   => '0.8',
        ),
    ),
    
=> array(
        
'type'           => 'S',
        
'items_function' => 'xmlmap_get_pages',
        
'properties'     => array(
            
'lastmod'    => '',
            
'changefreq' => 'never',
            
'priority'   => '0.2',
        ),
    ),
    
=> array(
        
'type'           => 'E',
        
'items_function' => 'xmlmap_get_extra',
        
'properties'     => array(
            
'lastmod'    => '',
            
'changefreq' => 'monthly',
            
'priority'   => '0.4',
        ),
    ),
    
=> array(
        
'type'           => 'H',
        
'items_function' => 'xmlmap_get_home',
        
'properties'     => array(
            
'lastmod'    => '',
            
'changefreq' => 'daily',
            
'priority'   => '1.0',
        ),
    ),
); 
__________________
Pinakin Patel
Zone1 Creative Ltd
http://www.zone1creative.co.uk/
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:24 PM.

   

 
X-Cart forums © 2001-2020