I created this content package:
-> jcr_root -> tmp -> .content.xml:
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
-> META-INF -> filter.xml:
<filter root="/tmp" mode="update" />
Before I install:
As you can see, my package updates the property but it doesn't update the jcr:lastModified date (in fact there isn't one). Is there a way that I can configure it so that the jcr:lastModified date will be updated when the package is installed?
You can write custom resource listener. So, if there's any change happens in content hierarchy then whichever paths gets updated, you can update jcr:modified property for it.
the PackageManager does not support this.