// need next loop here.. something like this maby? <xsl:for-each select="umbraco.library:GetMedia('{@id}', 'false')/node"> @nodeName </xsl:for-each> //but what about the xslt:if that is needed around it? how do i go bout this?
If you get the medias via GetMedia and the recursive parameter set to true you get the complete tree as a structure like it is on the content node section. So if you are in the first loop you only need to select the next nodelevel: xsl:for-each select="node"
mediaPicker: listing subnodes to a subnode..?
Hi ...
I have this structure in my media folder:
Catalogues
- Asia
¤ Catalogue 1
¤ Catalogue 2
- Africa
- Europe
on my page i just select "Catalogues", and in my macro i set it to post the subnodes to my selection, itll then post Asia, Africa and Europe ..
But how do i go about posting the subnodes the the results i got from the macro? the subnodes to Asia, Africa and Europe? Dynamicly in the same macro?
any help is appreciated - and thanks .. :-)
Hi Jonas, do you want all nodes at all levels printed, or only the immediate child-nodes ?
Just take a look into this thread
I think this will explain how you can iterate through all subnodes...
Thomas
... and on this page you can see another example of how to display media using links to subnodes.
>Tommy
just the immideate child nodes ..
something like this maby:
<xsl:for-each select="$currentPage">
<xsl:if test="./data[@alias = $MediaFolderPicked] != '' ">
<xsl:for-each select="umbraco.library:GetMedia(./data[@alias = $MediaFolderPicked], 'true')/node">
@nodeName
// need next loop here.. something like this maby?
<xsl:for-each select="umbraco.library:GetMedia('{@id}', 'false')/node">
@nodeName
</xsl:for-each>
//but what about the xslt:if that is needed around it? how do i go bout this?
</xsl:for-each>
</xsl:if>
</xsl:for-each>
If you get the medias via GetMedia and the recursive parameter set to true you get the complete tree as a structure like it is on the content node section. So if you are in the first loop you only need to select the next nodelevel: xsl:for-each select="node"
eg:
hth, Thomas
ohhh.. very nice ... thanks .. =)
is working on a reply...