DateModified returning Page date not Item date

Posted by bwilson on 25-Nov-2019 20:24

I'm building an MVC View for one of our Custom Modules. I'm not using a custom data model or controller. Everything in the list and detail views are working fine with one exception.


Updated: @Model.Item.GetDateTime("LastModified", "MMM d, yyyy")

This seems to return the Last Modified date of the page the widget lives on, not the actual last modified date of the content item in the custom module. For example, today I published the page that contains the widget. I did not publish any content items. But now every detail view shows a modified date of today. How do I get/display the last modified date of the content item itself, not the page?

All Replies

This thread is closed