Mugshot

Hey I'm Lee. My blog was put up to house useful nuggets I could refer back to, document my learning curves on new technologies and house tutorials I write for Umbraco and other .NET stuff.

All thoughts and comments on here are my own, and in no way reflect my employer - I also take no responsibility for spelling, grammar or terminology, so read at your own risk!

Blogs I Read

Sites I Like

Very simple but useful Umbraco image display package

This is a really simple user control which you can use to display images, you just pass in the image URL and other optional values explained below.  Its really simple, and if it has a property value will display the image, but also add an optional hyperlink, class or alt tag.

  • PropertyName – This is the image URL, I use this macro most for the upload property by simply passing in the property inline like so [#UploadPropertyName].
  • OptionalClass – If you want to add an optional CSS class to the image.
  • OptionalURL – If you add a URL into this field, it simple wraps the image with a hyperlink.
  • altTag – If left empty it will just add a blank alt=””

I won’t put this on our.umbraco as I don’t think its worthy

But you can download it here

Hope this helps some of the newbies to Umbraco out when creating simple sites

Back to top