Hi ewebdzinde,
For an XSLT function,
In the template, make use of the returned files' IDs and Titles and build your list:
For an XSLT function,
- Add a parameter of the type "Data Reference <C1 Media Folder>".
- Consider specifying a Test value for this parameter to be able to preview the function's input
- On the Function Calls tab, add the function "Composite.Data.Types.IMediaFile.GetIMediaFileXml".
- Select needed fields, e.g. ID and Title
- In the Filter parameter, select the function "Composite.Data.Types.IMediaFile.MediaFolderFilter"
-
For its MediaFolder parameter select the Input parameter.
In the template, make use of the returned files' IDs and Titles and build your list:
<xsl:template match="/">
<html>
<head/>
<body>
<ul>
<xsl:apply-templates select="/in:inputs/in:result[@name='GetIMediaFileXml']/IMediaFile"/>
</ul>
</body>
</html>
</xsl:template>
<xsl:template match="/in:inputs/in:result[@name='GetIMediaFileXml']/IMediaFile">
<li>
<xsl:value-of select="@Title"/><br/>
<a href="~/media({@Id})">Download</a>
</li>
</xsl:template>