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
I am new in Umbraco and stuck in some xslt. (using umbraco 4.8)
My content:
Gallery
-Photo (containing mediapicker - display crop of image)
and so on.
----------------------------------------------------
From another page i am able to display singel image form media libary but not with for-each
<img> <xsl:attribute name="src"> <xsl:value-of select="umbraco.library:GetMedia($currentPage/sliderImagerPickerNo1, 'false')/imageCropper//crop [@name = 'Slider-Home']/@url" /> </xsl:attribute> </img>
I am using: List subpages for current page.
Thanks in advance.
If youre looking to place the macro on the "Gallery" page, listing the subpages, it would be something like this
<xsl:for-each select="$currentPage/* [@isDoc and string(umbracoNaviHide) != '1']"> <img> <xsl:attribute name="src"> <xsl:value-of select="umbraco.library:GetMedia(sliderImagerPickerNo1, 'false')/imageCropper//crop [@name = 'Slider-Home']/@url" /> </xsl:attribute> </img></xsl:for-each>
Remember, when your inside a for-each, you must exclude "$currentPage" in "Getmedia", because you're in a loop of the pages below $currentPage
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Create gallery from subpages
I am new in Umbraco and stuck in some xslt. (using umbraco 4.8)
My content:
Gallery
-Photo (containing mediapicker - display crop of image)
-Photo (containing mediapicker - display crop of image)
and so on.
----------------------------------------------------
From another page i am able to display singel image form media libary but not with for-each
<img>
<xsl:attribute name="src">
<xsl:value-of select="umbraco.library:GetMedia($currentPage/sliderImagerPickerNo1, 'false')/imageCropper//crop [@name = 'Slider-Home']/@url" />
</xsl:attribute>
</img>
I am using: List subpages for current page.
Thanks in advance.
If youre looking to place the macro on the "Gallery" page, listing the subpages, it would be something like this
Remember, when your inside a for-each, you must exclude "$currentPage" in "Getmedia", because you're in a loop of the pages below $currentPage
is working on a reply...