J!Extensions Store™
Forum
Welcome, Guest
Please Login to access forum.
Removal of lastmod tag (1 viewing) 
Go to bottom
TOPIC: Removal of lastmod tag
#2405
Busy All Year
Fresh Boarder
Posts: 6
User Offline
Removal of lastmod tag Karma: 0  
Hi
I've noticed that Google seems to crawl and index pages better without the <lastmod> information in the xml site index.
Is there any way to remove this information from the generated XML automatically?
Help would be appreciated!
Cheers, Bob
 
Logged Logged  
  The administrator has disabled public write access.
#2406
John Dagelmore
Admin
Posts: 3716
User Online Now
Re:Removal of lastmod tag Karma: 79  
Hi Bob,

the lastmod normally is a help for Google to understand how fresh is the content and help to index more correctly all links.
However if you want to remove it from the XML sitemap, the best choice would be remove the tag from the files used by the component to render the sitemap, or even better configure a template override for those view files to avoid overring when updating.

Cheers,

John
 
Logged Logged  
  The administrator has disabled public write access.
#2407
Busy All Year
Fresh Boarder
Posts: 6
User Offline
Re:Removal of lastmod tag Karma: 0  
Thanks for the quick reply John.
Could you point me to the files I need to look at please?
Cheers
Bob
 
Logged Logged  
  The administrator has disabled public write access.
#2408
John Dagelmore
Admin
Posts: 3716
User Online Now
Re:Removal of lastmod tag Karma: 79  
Sure Bob,

the files are contained at this path: yourjoomlaparg/components/com_jmap/views/sitemap/tmpl

You can create a Joomla template override with files contained in this folder and remove the <lastmod> for example from the files:

default_xml_content.php
default_xml_menu.php
default_xml_user.php
....etc....

Cheers,

John
 
Logged Logged  
  The administrator has disabled public write access.
#2411
Busy All Year
Fresh Boarder
Posts: 6
User Offline
Re:Removal of lastmod tag Karma: 0  
That's fixed it! Thank you John!
 
Logged Logged  
  The administrator has disabled public write access.
#2412
John Dagelmore
Admin
Posts: 3716
User Online Now
Re:Removal of lastmod tag Karma: 79  
Thanks for the feedback Bob!

Definitely i hope you are happy
 
Logged Logged  
  The administrator has disabled public write access.
Go to top