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
All i want is to be able to choose an image from the media library and place it into a specific div within my html.
I have tried the media picker, however, that doesnt work. The out put is
I have also tried the RTE and just select an image. Although it does upload the image, it places a p tag for some reason which i do not want.
What is the easiest and simplest way to upload images from the media section into a div.
Can you pasted a snippet showing how you were attempting to output the image in your div?
The Umbraco docs detail a couple of Razor snippets that you may find helpful:
If you need an image inside a div in the RTE the easiest way would probably be a macro:
If you have a mediapicker property on your document type and using strongly typed models in your templates you would get a Umbraco.Web.PublishedModels.Image from the model of the document type.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted