I did a bit of digging through the code and figured out how to make the filename auto fill into the alt and title. This module appears to make a token, but it's not really a system token, just one it looks for relevant to the widget itself. For those wondering, if you put [filename] in as default text for alt or title as you configure the module, they will get filled as you need.

I understand it might not be accurate to declare this as a full token, but a note on the admin to tell people about this option, maybe just as a text description would be greatly appreciated.

If possible, it might be nice to replace the current [filename] token with a seperated pair. I'd love to have [filename], [filetype] or [fileextension].

Comments

enyal’s picture

Thanks. This was helpful.

I'd like to see replacement for filetype, extension, etc as well.