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, I have a problem with the rendering of a folder of Image through parameter mediacurrent, and I understand where nis mistake <? Xml version = "1.0" encoding = "UTF-8"?> <! DOCTYPE xsl: Stylesheet [<! ENTITY nbsp ""> <! ENTITY raquo "» "> <! ENTITY laque '">]> <Xsl: stylesheet version = "1.0" http://www.w3.org/1999/XSL/Transform"" onmouseover="this.style.backgroundColor='#ebeff9'" onmouseout="this.style.backgroundColor='#fff'">xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" xmlns: msxml = "urn: schemas-microsoft-com: xslt" xmlns: umbraco.library = "urn: umbraco.library" exclude-result-prefixes = "msxml umbraco.library"> <xsl:output method="xml" omit-xml-declaration="yes"/> <xsl:param name="currentPage"/> <xsl:template match="/"> <! - Start writing XSLT -> <! - <xsl:variable name="bannl" select="//macro/bannl/node/@id"/> <xsl:for-each select="//macro/bannl/node"> <xsl:value-of select="./@id" /> <a href="{//macro/bannl/node/data [@alias='umbracoFile']}" rel='lightbox' title="{//macro/bannl/node/didascalia}"> <img> <xsl:attribute name="src"> / umbraco / imageGen.aspx? image = <xsl:value-of select="//macro/selectedMedia/node/data [@alias='umbracoFile']" /> & width = 230 & height = 115 & constrain = true </ xsl: attribute> <xsl:attribute name="class"> Reflect rheight25 ropacity35 </ xsl: attribute> <xsl:attribute name ="style"> border: none; </ xsl: attribute> </ Img> </ A> </ Xsl: for-each> <xsl:variable name="bannl" select="/macro/bannl/node"/> <xsl:for-each select="/macro/bannl/node"> <xsl:value-of select="@nodeName"/> <xsl:value-of select="@id"/> </ Xsl: for-each> -> <xsl:variable name="bannl" select="/macro/bannl/node/@id"/> <xsl:if test="$bannl != ">'' <xsl:for-each select="/macro/bannl/node/@id"> sss <img> <xsl:attribute name="src"> <xsl:value-of select="umbraco.library:GetMedia($bannl,'false')/data [@alias ='umbracoFile']"/> </ Xsl: attribute> </ Img> </ Xsl: for-each> </ Xsl: if> </ Xsl: template> </ Xsl: stylesheet>
solved
<xsl:variable name="MediaNodeId" select="/macro/MediaNodeId/node/@id"/><div class="bannerlink"><xsl:if test="$MediaNodeId != '' "><xsl:for-each select="umbraco.library:GetMedia($MediaNodeId, 'true')/node"><a href="{./data [@alias='link']}" target="_blank">
<img><xsl:attribute name="src">/umbraco/imageGen.aspx?image=<xsl:value-of select="./data [@alias='umbracoFile']" />&width=70&height=70&constrain=true</xsl:attribute><xsl:attribute name="class">reflect rheight25 ropacity35</xsl:attribute></img>
</a></xsl:for-each></xsl:if></div>
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
problem with mediacurrent
Hi, I have a problem with the rendering of a folder of Image through parameter mediacurrent, and I understand where nis mistake
<? Xml version = "1.0" encoding = "UTF-8"?>
<! DOCTYPE xsl: Stylesheet [<! ENTITY nbsp ""> <! ENTITY raquo "» "> <! ENTITY laque '">]>
<Xsl: stylesheet
version = "1.0"
http://www.w3.org/1999/XSL/Transform"" onmouseover="this.style.backgroundColor='#ebeff9'" onmouseout="this.style.backgroundColor='#fff'">xmlns: xsl = "http://www.w3.org/1999/XSL/Transform"
xmlns: msxml = "urn: schemas-microsoft-com: xslt"
xmlns: umbraco.library = "urn: umbraco.library"
exclude-result-prefixes = "msxml umbraco.library">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/>
<xsl:template match="/">
<! - Start writing XSLT ->
<! -
<xsl:variable name="bannl" select="//macro/bannl/node/@id"/>
<xsl:for-each select="//macro/bannl/node">
<xsl:value-of select="./@id" />
<a href="{//macro/bannl/node/data [@alias='umbracoFile']}" rel='lightbox' title="{//macro/bannl/node/didascalia}">
<img>
<xsl:attribute name="src"> / umbraco / imageGen.aspx? image = <xsl:value-of select="//macro/selectedMedia/node/data [@alias='umbracoFile']" /> & width = 230 & height = 115 & constrain = true </ xsl: attribute>
<xsl:attribute name="class"> Reflect rheight25 ropacity35 </ xsl: attribute>
<xsl:attribute name ="style"> border: none; </ xsl: attribute>
</ Img>
</ A>
</ Xsl: for-each>
<xsl:variable name="bannl" select="/macro/bannl/node"/>
<xsl:for-each select="/macro/bannl/node">
<xsl:value-of select="@nodeName"/>
<xsl:value-of select="@id"/>
</ Xsl: for-each>
->
<xsl:variable name="bannl" select="/macro/bannl/node/@id"/>
<xsl:if test="$bannl != ">''
<xsl:for-each select="/macro/bannl/node/@id">
sss
<img>
<xsl:attribute name="src">
<xsl:value-of select="umbraco.library:GetMedia($bannl,'false')/data [@alias ='umbracoFile']"/>
</ Xsl: attribute>
</ Img>
</ Xsl: for-each>
</ Xsl: if>
</ Xsl: template>
</ Xsl: stylesheet>
solved
<xsl:variable name="MediaNodeId" select="/macro/MediaNodeId/node/@id"/>
<div class="bannerlink">
<xsl:if test="$MediaNodeId != '' ">
<xsl:for-each select="umbraco.library:GetMedia($MediaNodeId, 'true')/node">
<a href="{./data [@alias='link']}" target="_blank">
<img>
<xsl:attribute name="src">/umbraco/imageGen.aspx?image=
<xsl:value-of select="./data [@alias='umbracoFile']" />
&width=70&height=70&constrain=true</xsl:attribute>
<xsl:attribute name="class">reflect rheight25 ropacity35</xsl:attribute>
</img>
</a>
</xsl:for-each>
</xsl:if>
</div>
is working on a reply...