Questions tagged [assetfilemodel]
The assetfilemodel tag has no usage guidance.
4
questions
4
votes
1
answer
2k
views
How do I display a list of assets with the entries they are related to?
Given a list of assets, for each asset, how do I display a list of entries that relate to this asset? So, for instance, if asset A is selected as asset in entries 1 and 2, I want a list to be ...
10
votes
1
answer
3k
views
How do you delete assets from a frontend form?
I am creating a proof of concept for a client in Craft where the client's customers can manage projects from the frontend of a Craft install.
I have a frontend form working correctly for creating a ...
8
votes
1
answer
694
views
Is it possible to hook into image transforms?
I have a somewhat unique thumbnail need for a certain site. I need to watermark images with custom text (per image, not globally across the site). Is there a way to hook into the Craft image transform ...
15
votes
4
answers
5k
views
How to get absolute path to asset file?
I have some csv files uploaded as assets and now I need to fopen() them from my plugin.
I have an AssetFileModel but I have not been able to work out how to construct a full path to the file.
I can ...