Using Kentico MVC, I would like to add a new field in my page type to select the GUID of a media in order to generate something like: /getmedia/ff30e190-1784-4cbc-8718-f16f3c570535/Colombia-Coffee.jpg
. I know that you can have a GUID data type field for selecting pages but nothing, to my knowledge, for media.
In my situation, I have several big Excel files in only one language that I don't want to load as an attachment or a file as I don't want them to overload the CMS.Attachments
table for some documents which won't even be used in the smart search. It has to stay on the file system and so Media libraries seem to be a good compromise. However, I don't see how to attach media to a page using a dedicated field in a way I could then do API manipulation (easily extract Title, size, etc...)?
Thank you for your help
Sylvain