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've Googled and Googled and am yet to come up with an answer that works.
What is the correct format for using a MediaPicker to display an image?
I have tried this code (Among other potential solutions):
<umbraco:Item field="eventImage" xslt="concat('<img align="right" class="image" src="',umbraco.library:GetMedia({0}, true())/umbracoFile, '" />')" xsltDisableEscaping="true" runat="server">
(My field name is "eventImage") and none of them work. What is the correct way to do this?
Hi Goeff,
Are you listing a list of Images from the media section or just picking a sinlge image?..what you can try is create an XSLT file under the developer section and add it to your template.
Your XSLT should look like this
<xsl:for-each select="$currentPage"> <xsl:element name="img"> <xsl:attribute name="src"> <xsl:value-of select="umbraco.library:GetMedia(eventImage, 'true')/umbracoFile" /> </xsl:attribute> </xsl:element> </xsl:for-each>
//fuji
I am selecting a single image.
Is there really no way to do this without creating a Macro?
Hi Geoff you could make use of inline XSLT as you mentioned in your previous post
<umbraco:Item runat="server" field="eventImage" xslt="concat('<img src="',umbraco.library:GetMedia({0}, true())/umbracoFile, '" />')" xsltDisableEscaping="true"/>
What version of umbraco are you using? The above code is for the new schema
If you are using the old schema pre v4.5 try this instead
<umbraco:Itemrunat="server"field="eventImage"xslt="concat('<img src="',umbraco.library:GetMedia({0}, true())/data[@alias='umbracoFile'], '" />')"xsltDisableEscaping="true"/>
Kindly solve the issue describe in this post http://our.umbraco.org/forum/developers/extending-umbraco/23201-Issue-in-creating-datatype-using-telrik-rad-controls-?p=0#comment86644
Waiting for positive replies.
Hi Sufyan,
This thread is intended to help Geoff to solve his issue.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Inserting an Image via a MediaPicker in a template
Hi all,
I've Googled and Googled and am yet to come up with an answer that works.
What is the correct format for using a MediaPicker to display an image?
I have tried this code (Among other potential solutions):
<umbraco:Item field="eventImage" xslt="concat('<img align="right" class="image" src="',umbraco.library:GetMedia({0}, true())/umbracoFile, '" />')" xsltDisableEscaping="true" runat="server">
(My field name is "eventImage") and none of them work. What is the correct way to do this?
Hi Goeff,
Are you listing a list of Images from the media section or just picking a sinlge image?..what you can try is create an XSLT file under the developer section and add it to your template.
Your XSLT should look like this
<xsl:for-each select="$currentPage">
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="umbraco.library:GetMedia(eventImage, 'true')/umbracoFile" />
</xsl:attribute>
</xsl:element>
</xsl:for-each>
//fuji
I am selecting a single image.
Is there really no way to do this without creating a Macro?
Hi Geoff you could make use of inline XSLT as you mentioned in your previous post
What version of umbraco are you using? The above code is for the new schema
If you are using the old schema pre v4.5 try this instead
Kindly solve the issue describe in this post
http://our.umbraco.org/forum/developers/extending-umbraco/23201-Issue-in-creating-datatype-using-telrik-rad-controls-?p=0#comment86644
Waiting for positive replies.
Hi Sufyan,
This thread is intended to help Geoff to solve his issue.
is working on a reply...