Can I add a last updated or modified date to a page metatag?
Hi guys,
I'm working with a sitewide enterprise internal search engine which makes extensive use of custom metadata tags, such as <meta name="product_sku" content="abc123" /> for filtering, categorising, ranking and displaying search results.
We intend on indexing category, board, article, blog and thread pages (not messages), and would like to capture the date of the last modification/update to each via a custom metatag added to the page. This will allow us to not only display a "last updated" date within the global search results, but rank content according to recency.
So my question is twofold – is the last modified date readily available across category, board, article, blog and thread pages, and if so, can it be added to a metatag such as <meta name="last_updated" content="16-10-2013" />?
Much appreciated!
Cheers, Jez
Hi Jerome,
as I mentioned you should be able to determine the date of the last change for these pages via the REST API looking at the time elements included in the responses. I am not sure around the effort required in building the XML feed - maybe you could look into the Lithium Studio Endpoints to generate the required data (with the rest calls) and pack it in the response format which can then be consumed by your tool.
I have a feeling that implementing the logic that adds the meta tags directly to the pages may be quicker, but it's difficult to tell without all the details.
In this case - it could be best to speak with your Lithium Manager and see if it's possible to arrange a consultancy on your specific integration issue.
Kind Regards,