How is the Media Picker supposed to work? What is its true intent?
I've inherited an umbraco site that was only partially completed. I have made some great strides in getting it to work and replace a classic asp authenticated website that has role-based security. I found a part of the site today though that I had previously overlooked. We have a piece of software that can be downloaded from our site. Our previous developer uploaded this software into the media section, then used the media picker within a document type to select that software. A link for the software shows up within a page and then I suppose they thought the media picker was going to magically direct the user to download the software when the link was clicked. All it does is send them to a non-existent url that contains the node id for the media. I know I could probably do something within a template to grab that media id, get the url for that software, and then do a redirect to it, but I wanted to know if their was a more elegant way.
How many MB is the software you mention? I don't think the media section is neccesarily ideal if it's more than 10-20 MB.
Then I would probably just place the software on the file-system in a folder called "Software" for instance, at the same level as /bin, /umbraco, /media etc. and then either hardcode the link or simply have a textfield in Umbraco to hold an external link for the software.
It is correct that the media picker does not do anything else but return an id for the selected image. If you use XSLT to render the content you would need to use the an extension called GetMedia, which will return the properties of the image.
Currently the media is 28mb. Our content owners are the ones that bundle up the software and it changes on a monthly basis. It is software that is used by a sales team. The hope was that when the software was changed it could be updated completely through the umbraco interface. I'll look at GetMedia.
How is the Media Picker supposed to work? What is its true intent?
I've inherited an umbraco site that was only partially completed. I have made some great strides in getting it to work and replace a classic asp authenticated website that has role-based security. I found a part of the site today though that I had previously overlooked. We have a piece of software that can be downloaded from our site. Our previous developer uploaded this software into the media section, then used the media picker within a document type to select that software. A link for the software shows up within a page and then I suppose they thought the media picker was going to magically direct the user to download the software when the link was clicked. All it does is send them to a non-existent url that contains the node id for the media. I know I could probably do something within a template to grab that media id, get the url for that software, and then do a redirect to it, but I wanted to know if their was a more elegant way.
Hi Scooter
How many MB is the software you mention? I don't think the media section is neccesarily ideal if it's more than 10-20 MB.
Then I would probably just place the software on the file-system in a folder called "Software" for instance, at the same level as /bin, /umbraco, /media etc. and then either hardcode the link or simply have a textfield in Umbraco to hold an external link for the software.
It is correct that the media picker does not do anything else but return an id for the selected image. If you use XSLT to render the content you would need to use the an extension called GetMedia, which will return the properties of the image.
Hope this helps :)
/Jan
Currently the media is 28mb. Our content owners are the ones that bundle up the software and it changes on a monthly basis. It is software that is used by a sales team. The hope was that when the software was changed it could be updated completely through the umbraco interface. I'll look at GetMedia.
Thanks.
is working on a reply...