Umbraco/Samples and Articles/XSLT/MediaLibrary

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Reading information from the media library[edit]

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']"/>