Umbraco/GetMedia

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

[edit] Umbraco.library.GetMedia

The method is used to get information of files in the media library - such as filename, size, height, width.


Parameters

GetMedia(int MediaId, bool Deep);

  Integer   MediaId  
  Boolean   Deep 

Return value

The method returns a XPathNodeIterator with the information of selected file.

Usage

<xsl:value-of select="umbraco.library:GetMedia(./data [@alias = '< your property>'], 'false')"/>
Personal tools
Namespaces
Variants
Actions
Navigation
Community
Toolbox
Sister projects
Print/export