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 am new to Umbraco. and i some requirement in my learning phase.
I want to display an image on my page.
but image should be choosen by user.
and can be change by user.
plz guide me regarding the same.
and if possible give me small sample application with above fuctionality.
thnx in advance.
Hi,
Welcome to the Umbraco forum!
To achieve what you need to do you can:
1) Add any image to the Media section
2) Add a 'Media Picker' property to your DocType and name it 'mediaItem'
3) In the template where you want to show your image add this code
<umbraco:Item runat="server" field="mediaItem" xslt="concat('<img src="',umbraco.library:GetMedia({0}, true())/umbracoFile, '" />')" xsltDisableEscaping="true"/>
4) In your content section select an image from your Media Library with the Media picker.
Regards
Rich
thanx Rich
Its work gr8 and really helpful for me atleast.
thnx again.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
about dynamic image display in content
Hi
I am new to Umbraco. and i some requirement in my learning phase.
I want to display an image on my page.
but image should be choosen by user.
and can be change by user.
plz guide me regarding the same.
and if possible give me small sample application with above fuctionality.
thnx in advance.
Hi,
Welcome to the Umbraco forum!
To achieve what you need to do you can:
1) Add any image to the Media section
2) Add a 'Media Picker' property to your DocType and name it 'mediaItem'
3) In the template where you want to show your image add this code
<umbraco:Item runat="server" field="mediaItem" xslt="concat('<img src="',umbraco.library:GetMedia({0}, true())/umbracoFile, '" />')" xsltDisableEscaping="true"/>
4) In your content section select an image from your Media Library with the Media picker.
Regards
Rich
thanx Rich
Its work gr8 and really helpful for me atleast.
thnx again.
is working on a reply...