Jump to content

Umbraco/Samples and Articles/XSLT/MediaLibrary

From Wikibooks, open books for an open world

Reading information from the media library

[edit | edit source]

Reading information from the media library is actually quite simple - It's all implemented 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']"/>