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
maybe this is a stupid question.
what datatype are you using on the doctype to select and show the cropped image?? i only got the media picker
You need to create the datatype first, in the developer section under "datatypes".
/Jan
i can get the crop to work in the media folder, but how do i pick the image i want to show in my docktype???
Have a look at Dirk's suggestion in this post: http://our.umbraco.org/projects/backoffice-extensions/image-cropper/image-cropper/3085-Automatic-crop-generation-and-XSLT-for-media-items
I think this answers your question? :-)
<xsl:variable name="media" select="umbraco.library:GetMedia($currentPage/foto, 0)" /><img src="{$media/umbracoFile}" alt="{$media/altText}" />
i got this XSLT to get the image but how do i get the cropped one
<xsl:template match="/"> <xsl:variable name="media" select="umbraco.library:GetMedia($currentPage/foto, 0)" /> <img src="{$media/cropper//crop [@name ='Profil']/@url}" alt="{$media/altText}" /> </xsl:template>
i got this to work
foto = Alias of the datafield on the docktype
cropper = Alias of the cropper on the image datatype
Profil = a crop size i added under the image cropper datatype
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
How to show the cropped image
maybe this is a stupid question.
what datatype are you using on the doctype to select and show the cropped image?? i only got the media picker
You need to create the datatype first, in the developer section under "datatypes".
/Jan
i can get the crop to work in the media folder, but how do i pick the image i want to show in my docktype???
Have a look at Dirk's suggestion in this post: http://our.umbraco.org/projects/backoffice-extensions/image-cropper/image-cropper/3085-Automatic-crop-generation-and-XSLT-for-media-items
I think this answers your question? :-)
/Jan
<xsl:variable name="media" select="umbraco.library:GetMedia($currentPage/foto, 0)" />
<img src="{$media/umbracoFile}" alt="{$media/altText}" />
i got this XSLT to get the image but how do i get the cropped one
<xsl:template match="/">
<xsl:variable name="media" select="umbraco.library:GetMedia($currentPage/foto, 0)" />
<img src="{$media/cropper//crop [@name ='Profil']/@url}" alt="{$media/altText}" />
</xsl:template>
i got this to work
foto = Alias of the datafield on the docktype
cropper = Alias of the cropper on the image datatype
Profil = a crop size i added under the image cropper datatype
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.