In my current project (umbraco v. 7.2.2) the umbraco users want to be able to put a custom URL for each media node. In media type "image" and "file" I have added a new property "customUrl" of type textstring. The media file or image will only be available by this custom url.
Hl Dave,
I am new to this area and was curious if you know of any online resources that are simple enough to understand in creating a custom HTTP handler for Umbraco?
AFAIK, content finders and URL providers don't work with media. They only work with content. At least, I've never heard of them being used with media (as awesome as that would be).
Custom url for media file/image
Hi,
In my current project (umbraco v. 7.2.2) the umbraco users want to be able to put a custom URL for each media node. In media type "image" and "file" I have added a new property "customUrl" of type textstring. The media file or image will only be available by this custom url.
Have anyone an idea how I can solve this?
Best,
Sören
I know you can use umbraco Url alias for content nodes. Maybe this can be used for media too. I haven't tried that
https://our.umbraco.org/wiki/reference/umbraco-best-practices/umbracourlalias
Hl Dave, I am new to this area and was curious if you know of any online resources that are simple enough to understand in creating a custom HTTP handler for Umbraco?
Thanks in advance!
Hi Dave,
umbracoUrlAlias works only for content nodes. I have tried this yet.
Best,
Sören
You can alwasy create your own http handler and link to that in your templates. The handler will need to get the correct file.
Dave
Hi Dave,
thanks :-) I will give it a try next week. I'll get back when we tested it.
Best,
Sören
Hi Soren,
Did you manage to solve this in the end? If so what was your approach?
Hi Sören,
Don´t know if this blogpost written by Jeroen Breuer can be at any help.
http://24days.in/umbraco/2014/urlprovider-and-contentfinder/
/Dennis
Hi Dennis,
thanks, that's very interesting :-) Once I have more time again, I will deal with it once and make a few tests. Maybe this can help me, we will see...
Cheers, Sören
AFAIK, content finders and URL providers don't work with media. They only work with content. At least, I've never heard of them being used with media (as awesome as that would be).
is working on a reply...