how could we delete image via Frontend interface by not going into the backend of matrix?
You can't delete any assets from the frontend of Matrix directly. You could use a Link Manager asset to allow users to link the asset to a non-published location, or perhaps use triggers to move the asset to the trash.
We do this all the time using triggers, and linking the asset to the trash, and then unlink from current parent.
hi nnhubbard,
what event did you use on the triggers?
[quote]hi nnhubbard,
what event did you use on the triggers?[/quote]
Asset Accessed.
Make sure you add some specific conditions, and probably a javascript warning making sure you want to delete the specific asset.
I have done this in the past by adding a nested link manager page when editing in the front end. A trigger picked up the link and set a future link to the trash x days in the future. The future link deleted all other links. At the time it was hard to get the future link to trash to work. The functionality was built for this to work but i left squiz before revisiting the setup.