Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi All,
I am just ondering how I go about doing hte following on a for-each for a getMedia()
I know in XSL I can do the following
<xsl:if test="self::pubdate or self::dc:date"> <xsl:element name="pubdate"> <xsl:value-of select="." /> </xsl:element></xsl:if>
But if I wanted to do this for two aliases on a GetMedia item I cant get it working. I have this so far
<xsl:for-each select="umbraco.library:GetMedia($mediaID,'true')/node [string(data [@alias = 'resourceBehaviour']) = $filterItem] or [string(data [@alias = 'resourceTopic']) = $filterItem]"> ... </xsl:for-each>
Sorry for all the newbie questions, still relatively new to XSL
Thanks
Tom
try this
<xsl:for-each select="umbraco.library:GetMedia($mediaID,'true')/node [string(data [@alias = 'resourceBehaviour']) = $filterItem or string(data [@alias = 'resourceTopic']) = $filterItem]"> ... </xsl:for-each>
Ron
Hi Ron,
That worked a treat, wasn't far off.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
'or' statement within for-each GetMedia
Hi All,
I am just ondering how I go about doing hte following on a for-each for a getMedia()
I know in XSL I can do the following
But if I wanted to do this for two aliases on a GetMedia item I cant get it working. I have this so far
Sorry for all the newbie questions, still relatively new to XSL
Thanks
Tom
try this
Ron
Hi Ron,
That worked a treat, wasn't far off.
Tom
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.