Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I´m using the XSLExtensions from the UComponents dll but I can´t get the Media Items using this method:
uComponents.Core.XsltExtensions.Media.GetMediaByUrlName
I have tried with all the formats:
But always returns the full Media Items, not only the desired node.
Exactly what I need is the size of the media item, to render it.
Anybody can help?
I have checked in the XML that in the URLName attribute it comes only the name of the media, so I can´t use this method to get a media item from his path.
Any idea about how to do this in C#?
I don´t know if there´s a better way but I have decided to get the ID parsing the URL. It´s always the last folder.
Once I have the Media ID I can´t use the umbraco.library.GetMedia method.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
GetMediaByUrlName How does it work? Or any other method to get media using the path?
I´m using the XSLExtensions from the UComponents dll but I can´t get the Media Items using this method:
uComponents.Core.XsltExtensions.Media.GetMediaByUrlName
I have tried with all the formats:
But always returns the full Media Items, not only the desired node.
Exactly what I need is the size of the media item, to render it.
Anybody can help?
I have checked in the XML that in the URLName attribute it comes only the name of the media, so I can´t use this method to get a media item from his path.
Any idea about how to do this in C#?
I don´t know if there´s a better way but I have decided to get the ID parsing the URL. It´s always the last folder.
Once I have the Media ID I can´t use the umbraco.library.GetMedia method.
is working on a reply...