Forum
Welcome, Guest
Please Login to access forum.
last modification date (lastmod) missing (1 viewing) 
Go to bottom
TOPIC: last modification date (lastmod) missing
#4174
STS Web Consulting snc
Fresh Boarder
Posts: 3
User Offline
last modification date (lastmod) missing Karma: 0  
Hello,
I installed Jsitemap pro, I disabled Content data source because I don't want dummy urls to be shown in the sitemap (e.g.: /2-uncategorised/4-subcategory/33-article-name ), so I just use 3 menus data sources, which contain all the urls I want to be present in the sitemap.

Urls are fine, but last modification date (lastmod xml tag) is missing.

Is there any chance to show it?

Thank you.
 
Logged Logged  
  The administrator has disabled public write access.
#4175
John Dagelmore
Admin
Posts: 3722
User Offline
Re:last modification date (lastmod) missing Karma: 79  
Hello,

no because the lastmod date is not managed at all by Joomla for menu items.
It's managed for contents and from other third party extensions such as K2, Virtuemart, etc in all cases where there is an information available for the date of last modification we have already thought and provided to include the tag in the sitemap.

If you want to have a lastmod xml tag in the sitemap for menu, you could do using a template override and adding the current time... but it makes no sense.

Cheers!
 
Logged Logged  
  The administrator has disabled public write access.
#4184
STS Web Consulting snc
Fresh Boarder
Posts: 3
User Offline
Re:last modification date (lastmod) missing Karma: 0  
Thank you for your reply John.

I understand the problem, finding lastmod from a menu item requires complex sql queries to get article details.

I can exclude dummy urls manually, it would be great an option to exclude featured articles to avoid duplicated content.

For example my homepage is made of a featured article and some modules.
In the sitemap I see homepage and homepage article url: /2-uncategorised/32-site-homepage
 
Logged Logged  
  The administrator has disabled public write access.
#4185
John Dagelmore
Admin
Posts: 3722
User Offline
Re:last modification date (lastmod) missing Karma: 79  
But you can do that.

The link: /2-uncategorised/32-site-homepage

is probably generated by the data source 'content' and in the settings you can exclude whole categories of articles or even single articles.
 
Logged Logged  
  The administrator has disabled public write access.
#4186
STS Web Consulting snc
Fresh Boarder
Posts: 3
User Offline
Re:last modification date (lastmod) missing Karma: 0  
Thank you John.

I have a last question: I'd like to order items in xml sitemap by last modification date, last modified in top.

I edited models/sitemap.php

FROM
Code:

$dynamicOrdering = "created DESC,";
TO
Code:

$dynamicOrdering = "modified DESC,";
Is there a way to override the model so future updates won't overwrite my change?
 
Logged Logged  
  The administrator has disabled public write access.
#4187
John Dagelmore
Admin
Posts: 3722
User Offline
Re:last modification date (lastmod) missing Karma: 79  
No models can't be overriden in Joomla, only view templates.

The only chance is that i add a new parameter to activate this option in the next release.
 
Logged Logged  
  The administrator has disabled public write access.
Go to top