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
extremely new and have not got much experience.
Basically i am using umbraco for our bar/restaurant website.
we have tabs for certain things like food drink location etc and i am "trying" to upload menus that are saved as a PDF. its only uploading as a url link and people need to click on that link to open the menu but i would prefer it to just be a picture of the menu as appose to a link?
can any help?
Little experience here as well, but maybe this helps.
Maybe you can convert your PDF to an image first, by (for instance) taking a screenshot of it and then using a Media Picker editor on your page to select the image.
You can then display the image on your website like this:
var img = Model.Value<IPublishedContent>("propertyHandle");
<img src="@img.Url" alt="@img.Name" />
(replace "propertyHandle" with the right handle from the property that has the media picker)
And if you would like to give them a link to the full PDF, maybe put an tag around the img, like this:
(you'll need an extra property on your page which links to your PDF file. You can use a media picker for this as well I think)
<a href="link/to/file.pdf" target="_blank"><img src="@img.Url" alt="@img.Name" /></a>
Does this help?
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted