Image usage is not registered when used in RTE
I have an Image asset and I use it in 2 Content Elements. First I created a text w image element and attached it as image, after that I created a text element and inserted the same image inside the RTE.
The media module shows me a usage count of 1 (the first content element)
[FEATURE] Improve Usage and Variant Grid Render
Column Usage in the Grid displays also information
of a File related to the RTE.
#1 Updated by Fabien Udriot over 6 years ago
I am aware of this issue. As background information, usage info comes from table
sys_file_reference and works well for Content Element such as Text w image. However, it is not the case in the RTE which does not handle any relations. To solve the issue and keep
sys_file_reference up to date when inserting image in RTE, we would need to have a hook in TCEmain parsing the content and telling
sys_file_reference there is a new relation (or a relation was removed). This would apply when inserting image and also when creating a link to a file. The script could also be delivered as scheduler task or as hook into the indexing mechanism of TYPO3 (this would need to be investigated how easy the second solution could be implemented).
If we implement something, this should also be decided whether we handle usage of Variant files. For that particular case, I can imagine having a separate view for not bloating the main Media module.
If you need to contact me for "private" info, drop me an email at <email@example.com>