but i want to do a quick <xsl:copy-of select="umbraco.library:GetMedia(something_goes_here, 'false')"/> to return a list of nodes and subnodes. basically i want to refer by Media nodename instead of nodeid. is anything of this possible, if so please help.
umbraco.library:GetMedia needs to be given a node ID to return the media item/items. But you can give it an ID that is a folder (node that contains a collection of images or files). So I have done the following, to list items within a media folder.
return GetMedia nodes list without provide a nodeid
is it possible to return a list of nodes (in xml form) WITHOUT provide a node id ?
normal: umbraco.library:GetMedia($nodeid, 'false')/Image[@nodeName=$someimage/value[1]]/umbracoFile
but i want to do a quick <xsl:copy-of select="umbraco.library:GetMedia(something_goes_here, 'false')"/> to return a list of nodes and subnodes. basically i want to refer by Media nodename instead of nodeid. is anything of this possible, if so please help.
thanks in advance !
Check out uQuery which is part of uComponents
Cheers,
/Dirk
umbraco.library:GetMedia needs to be given a node ID to return the media item/items. But you can give it an ID that is a folder (node that contains a collection of images or files). So I have done the following, to list items within a media folder.
You could then check the result for a media item that has a certain name.
is working on a reply...