I've seen the post by Warren Buckley here and the last section has details about GetMedia but it's not making much sense to me where $images comes from. My xslt is as follows:
<xsl:if test="$freeTrialPage!= ''"> <a href='{umbraco.library:NiceUrl($freeTrialPage)}' title='Sign up now for a FREE trial!'> <xsl:choose> <xsl:when test="$currentPage/@id = $optimisePage"> <img src='/media/10653/layout-Home-SignUp_03.gif'/> </xsl:when> <xsl:otherwise> <img src='/media/8806/request_Demo.gif'/> </xsl:otherwise> </xsl:choose> </a> </xsl:if>
<!-- The fun starts here --> <ul class="featurelist"> <xsl:for-each select="$currentPage/preceding-sibling::node"> <xsl:if test="data[@alias='IconSmall'] != '' ">
There's probably other errors in there that I need to be aware of but I've posted for some help earlier this afternoon that may help me identify those. The lines I'm concerned about are:
How do I reference IconSmall which is from a property of type MediaPicker. I've tried a few things but non working and generally thinking I'm making a pigs ear of all this today. :(
GetMedia for new xslt schema
I've seen the post by Warren Buckley here and the last section has details about GetMedia but it's not making much sense to me where $images comes from. My xslt is as follows:
There's probably other errors in there that I need to be aware of but I've posted for some help earlier this afternoon that may help me identify those. The lines I'm concerned about are:
How do I reference IconSmall which is from a property of type MediaPicker. I've tried a few things but non working and generally thinking I'm making a pigs ear of all this today. :(
Managed to find the wonderful xslt converter:
http://blackpoint.dk/umbraco-workbench/tools/convert-xml-schema-to-45-.aspx?p=2
is working on a reply...