Flowpack / Flowpack.Neos.AssetUsage

Provides a fast asset usage calculation implemenation for Neos CMS
GNU General Public License v3.0
5 stars 2 forks source link

Detect usage in text properties #1

Open Sebobo opened 3 years ago

Sebobo commented 3 years ago

When an asset is linked in a text property its usage is currently not registered

bwaidelich commented 1 year ago

In #12 I suggested [...]

to use the original mechanism to determine usages (using \Neos\ContentRepository\Domain\Repository\NodeDataRepository::findNodesByPathPrefixAndRelatedEntities())

but unfortunately that query is really really slow.

Maybe the "Neos 9.0 Asset Usage projection" can solve as an inspiration on how to extract asset ids: https://github.com/neos/neos-development-collection/blob/5345f6732c723c779ba70aca090605ee807d926e/Neos.Neos/Classes/AssetUsage/Projection/AssetUsageProjection.php#L208-L237