This script in 4.4 will list local images that were link to another content than their own
We supposed that should not happen, but it totally can by copy/paste a richtext during edition
const refs = Repository.query("//element(local, ametys:reference)", false) while (refs.hasNext()) { const ref = refs.next(); const contentNode = ref.getParent().getParent().getParent(); const values = ref.getProperty("ametys:reference").getValues() for (const value of values) { if (!value.getString().includes("://" + contentNode.getId() + "@")) { print (contentNode.getId() + " " + value.getString()) } } }
- Est référencé par
-
NEWSLETTER-335 Automatic data migration fails "Cannot read property "containsKey" of null"
- Closed