Umbraco/Samples and Articles/XSLT/MediaLibrary
Jump to navigation Jump to search
Reading information from the media library
Reading information from the media library is actually quite simple - It's all implimented in Umbraco. You only need to use a method in the umbraco.library in your XSLT.
To get the filename of a file in media library use the following XSLT:
<xsl:value-of select="umbraco.library:GetMedia(./data [@alias = '<your property>'], 'false')/data [@alias = 'umbracoFile']"/>