Hi, I'm struggling with the multiplemediapicker within a macro for umbraco version 8+. Has anyone got a code example of how to render out the filetype, url, and name. I'm trying to setup a macro with a multiple document selector for downloadable files. Many thanks, Nick
Which version of Umbraco you are using? In Umbraco 8.4.0 I have seen multi media picker available as macro parameter.
Similar topic discussion can be found here https://github.com/umbraco/Umbraco-CMS/issues/5335.
I managed to work out a solution to this (while developing something else)...
This presents a block presentation with an icon image depending on file type (plus a catch-all) there is also a custom parameter of description added to the media library.
multimediapicker in a macro umbraco 8
Hi, I'm struggling with the multiplemediapicker within a macro for umbraco version 8+. Has anyone got a code example of how to render out the filetype, url, and name. I'm trying to setup a macro with a multiple document selector for downloadable files. Many thanks, Nick
Hi Nick,
Which version of Umbraco you are using? In Umbraco 8.4.0 I have seen multi media picker available as macro parameter. Similar topic discussion can be found here https://github.com/umbraco/Umbraco-CMS/issues/5335.
Thanks
It's Umbraco 8.0 through to 8.3 (various different projects at different stages of development)
I managed to work out a solution to this (while developing something else)...
This presents a block presentation with an icon image depending on file type (plus a catch-all) there is also a custom parameter of description added to the media library.
@{ string MediaItems = (Model.MacroParameters["MediaItems"]).ToString(); string[] split = MediaItems.Split(',');
}
is working on a reply...